Posted: Tue Jan 03, 2017 3:48 pm Post subject: Problem with Threads
Hi,
my script is in an endless lopp where it sleeps 50 ms and then checks something. Of course I cant wait in the gui-thread so I started a new Thread...
Code:
co = coroutine.create(function ()
while true
do
...
end
end)
coroutine.resume(co)
But somehow the GUI still freezes and I have no idea why. Do you know how to fix this?
Thanks
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