Joined: 09 May 2003 Posts: 25835 Location: The netherlands
Posted: Thu Oct 22, 2020 11:51 am Post subject:
Code:
i = 0
function th_(t)
while (i < 5) and (not t.Terminated) do
i = i+1
sleep(1000)
if not t.Terminated then
synchronize(function()
showMessage(i)
end )
end
end
end
th = createNativeThread(th_)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum