Semaphore problem 1.39 mac

Archives Forums/BlitzMax Bug Reports/Semaphore problem 1.39 mac

ima747(Posted 2010) [#1]
Seeing this on mac, haven't tested windows yet. Haven't had a chance to punch of an example.

Child thread does WaitSemaphore, main thread does PostSemaphore when it gets a chance. After a fair number (variable but somewhat consistent when app is run back to back) the wait just imediately returns, and I think the post then sends the semaphore to negative so the next call to wait gets stuck forever.


Rozek(Posted 2010) [#2]
Yes,

I think, this is the same as http://blitzmax.com/Community/posts.php?topic=89933#1023990 - a really annoying bug which needs a lot of "workaround" code!

Hopefully it will be fixed soon...


marksibly(Posted 2010) [#3]
Hi,

Can someone please post some runnable example code?