Re: [AD] Mini-synchronization API proposal for 4.1.x

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


>  - Function: int pthread_mutex_lock (pthread_mutex_t *mutex))
> [snip]
>      If the mutex is already locked by the calling thread, the behavior
>      of `pthread_mutex_lock' depends on the type of the mutex. If the
>      mutex is of the "fast" type, the calling thread is suspended.  It
>      will remain suspended forever, because no other thread can unlock
>      the mutex.

Ok, so we can be lazy too and don't bother dealing with recursive locks ?

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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