[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANNOUNCE]: LuaThreads 1.0-work, pre-release
- From: Diego Nehab <diego@...>
- Date: Thu, 13 Dec 2001 17:33:31 -0200 (EDT)
Hi Aaron,
> Could the mutex:lock() return an "Already locked by me"? Then the user
> would need to remember not to unlock it.
There is a third popular kind of mutex that does exactly this. They are
called error-checking mutexes. Unfortunately, they are just as unportable
as the recursive mutexes... :-)
I will probably implement recursive mutexes for LuaThreads. There will be
warnings not to abuse them when used with condition variables.
Regards,
Diego.