This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Nested calls to Mutexes


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]