This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems with pthread mutexes - update
- From: "Arash Partow" <arashp at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 27 Sep 2004 07:11:33 +0000
- Subject: Re: Problems with pthread mutexes - update
This is a follow up to the setting mutex attribute issue, it turns
out Brian was correct, by zeroing off the pthread_mutexattr_t with
memset all the nastiness seems to go away...
The following code which doesn't exhibit the previously mentioned
int result = 0;
if ((result = pthread_mutexattr_init(&mutex_attr)) != 0)
printf("Error - Description: %s\n",stderror(result));
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html