RE: static initialization of pthread_rwlock_t?
RE: static initialization of pthread_rwlock_t?
- Subject: RE: static initialization of pthread_rwlock_t?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Mon, 8 Jun 2009 15:26:50 -0400
- Thread-topic: static initialization of pthread_rwlock_t?
Greg Parker wrote on Monday, June 08, 2009 1:02 PM
> 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.
Cool, thanks. I'll double check the Windows-side library to see if its
in there, if it is, then this works for me!
Thanks,
Cem Karan
_______________________________________________
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