[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaThreads for Lua 5.1?
- From: Bogdan Harjoc <harjoc@...>
- Date: Sat, 11 Aug 2007 19:12:32 +0200
Diego Nehab wrote:
It's not being maintained anymore for lack of interest. I did port it to
5.1 answering a couple requests, sent it out for people who asked for it
to test, and never heard
back from them. Hope it didn't destroy their computers. :)
If you want to try it out, let me know and I can send it to
Looking at the mini-pthreads code for win32, I skipped (as would be
expected, I guess) right to pthread_cond_wait().
And after a few minutes of looking at it (and at the pthreads-win32
sources from sourceware.org), I'm not convinced it's completely
right. My gripe is with the unlocked reads/writes to _cond->waiting in
For instance, two threads calling signal() and seeing waiting == 1 may
each call ReleaseSemaphore() and later decrement it down to -1.
Any thoughts on this would be appreciated.