This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Nested calls to Mutexes
- To: ecos-discuss at sources dot redhat dot com
- Subject: Re: [ECOS] Nested calls to Mutexes
- From: "Rosimildo daSilva" <rosimildo at hotmail dot com>
- Date: Wed, 04 Apr 2001 20:29:37 -0500
>From: martin@fatbob.nu
>
>Well, this isn't entirely true. The default behaviour is as you describe,
>but
>this can be changed using pthread_mutexattr_setkind_np(attr, kind)
>where kind can take the value PTHREAD_MUTEX_RECURSIVE_NP to create
>recursive
>mutexes (reading from the man page for pthread_mutexattr_setkind_np(3)
>contained in glibc 2.2).
>I've run across this before, but it's easy to solve using some wrapper
>function to create recursive mutexes.
>
>Regards
>/Martin
>
Thanks Martin. This is very useful information.
Rosimildo.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com