30.05.2022, 18:18
(30.05.2022, 06:38)admin Wrote: See this example: https://forum.logicmachine.net/showthrea...2#pid16762
Change the timeout from 5 seconds to 0.1
thanks for advice. it seams that semaphore doesn't starts even with simple code below i receiving log error* arg:
Code:
require('sem')
stat, err = sem.runlocked('eventlock', 0.1, function(lockres)
end)
if stat then
log('ok')
else
log('error', err)
end