lua-users home
lua-l archive

Re: [ANNOUNCE]: LuaThreads 1.0-work, pre-release

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.

AltStyle によって変換されたページ (->オリジナル) /