Lua:checkSynchronize
Jump to navigation
Jump to search
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