lua-users home
lua-l archive

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


Could the mutex:lock() return an "Already locked by me"?  Then the user
would need to remember not to unlock it.

Probably too simple to work in the real world... simple solutions
usually are!

-Aaron

>I will see how hard it is  to provide recursive mutexes to LuaThreads
in
>Linux, Solaris, AIX and IRIX. recursive  mutexes are not portable as
far
>as I know. If I manage to get  them all working, I might add a
parameter
>to newmutex(), to specify the kind of  mutex to be created. I don't
like
>the extra complexity,  though. Besides, I am  not sure if it  is easy
to
>create a non-recursive (and reasonably fast) mutex in Win32.
>
>Any sugestions?