Re: [AD] Mini-synchronization API proposal for 4.1.x |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2002-03-04, Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
>
> Ho ! I thought Pthreads didn't natively support recursive locking, so
> Allegro would have to emulate it on top of them. If they do support it, then
> I agree with you that recursive locking is better. Moreover,
> acquire_bitmap()/release_bitmap() supports this semantics.
Recursive mutexes aren't POSIX. However, they are part of Unix98.
Whether everything supports that is another matter. There are
non-portable ways of getting recursive mutexes, too. I dunno if
recursive mutexi are *really* required, but I don't use threads that
much.