Google Groups Home
Help | Sign in
Message from discussion recursive mutexes
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
red floyd  
View profile
 More options Jul 15 2004, 3:09 pm
Newsgroups: comp.programming.threads, comp.unix.programmer
From: red floyd <no.s...@here.dude>
Date: Thu, 15 Jul 2004 19:09:51 GMT
Local: Thurs, Jul 15 2004 3:09 pm
Subject: recursive mutexes

Does POSIX define what happens when a pthread currently holding a mutex
locks the same mutex?

i.e.

void f()
{
    pthread_mutex_lock(&some_mutex);
    pthread_mutex_lock(&some_mutex);

}

The Linux (MDK9.1) implementation of pthreads has a non-portable mutex
attribute letting you specify what behavior you want in said situation.

I'd like to try to write portable code, though.


    Reply to author    Forward  
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.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google