Difference between revisions of "Lua:checkSynchronize"
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
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