Difference between revisions of "Lua:checkSynchronize"

From Cheat Engine
Jump to navigation Jump to search
m (Syntax Highlighting.)
m (Added related function template.)
 
Line 38: Line 38:
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
{{Threads}}

Latest revision as of 20:55, 26 June 2026

<> Lua API Reference

function checkSynchronize(timeout) : void

Executes queued synchronize calls.

Call this from an infinite loop in the main thread when using threading and synchronize calls, so pending synchronized calls can be processed.

Function Parameters[edit]

Parameter Type Description
timeout Integer (optional) The optional timeout value used while checking for queued synchronize calls.

Returns[edit]

void — This function does not return any value.

Examples[edit]

1 while true do
2   checkSynchronize()
3 
4   -- Other loop logic here
5 end
1 while true do
2   checkSynchronize(100)
3 
4   -- Other loop logic here
5 end

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Thread Related Lua Functions

CPU information, process threads, main-thread execution, and queued callbacks