Newsgroups: comp.programming.threads, comp.unix.programmer
From: red floyd <no.s...@here.dude>
Date: Thu, 15 Jul 2004 20:54:56 GMT
Local: Thurs, Jul 15 2004 4:54 pm
Subject: Re: recursive mutexes
Casper H.S. Dik wrote: OK, thanks Joe and Casper. I guess my systems implementation is older, > red floyd <no.s...@here.dude> writes: >>Does POSIX define what happens when a pthread currently holding a mutex >>i.e. >>void f() >>The Linux (MDK9.1) implementation of pthreads has a non-portable mutex >>I'd like to try to write portable code, though. > Portable: > pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); > Casper and thus the recursive mutex hadn't yet been standardized or something. So I'll simply #define something like this #ifdef USE_NON_PORTABLE_RECURSIVE_MUTEX_ and use RECURSIVE_MUTEX_ATTR, so that I don't have to worry about it in You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||