Re: multithreaded callbacks (was Re: [AD] de fourium pointium ohium)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 08 Aug 2001, Gillius <gillius@xxxxxxxxxx> wrote:
> 
> POSIX thread mutexes (pthreads), do not have to be recursive.  Locking a 
> mutex more than once in the same thread will cause undefined behavior.  In 
> Windows, mutexes are recursive.  On some unicies, they are not.  Watch out 
> on platforms like solaris and other non-Linux unix platforms.

Oh, crap.  I was thinking only about different threads.  We could
always ask for "recursive" mutexes, but that might not be as portable.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/