Re: static initialization of pthread_rwlock_t?
Re: static initialization of pthread_rwlock_t?
- Subject: Re: static initialization of pthread_rwlock_t?
- From: Greg Parker <email@hidden>
- Date: Mon, 8 Jun 2009 10:02:15 -0700
On Jun 8, 2009, at 6:31 AM, Karan, Cem (Civ, ARL/CISD) wrote:
I know I can statically initialize a pthread_mutex_t via
PTHREAD_MUTEX_INITIALIZER; is there a similar macro/method for
pthread_rwlock_t instances? Note that I need a POSIX compliant
method, so special Darwin-only methods are out.
PTHREAD_RWLOCK_INITIALIZER
Introduced in Leopard, I think. I don't know if it's formally POSIX,
but it seems common enough elsewhere.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden