delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/25/21:50:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [220.244.224.41]
X-Originating-Email: [arashp AT hotmail DOT com]
X-Sender: arashp AT hotmail DOT com
From: "Arash Partow" <arashp AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Problems with pthread mutexes
Date: Sun, 26 Sep 2004 01:49:53 +0000
Mime-Version: 1.0
Message-ID: <BAY9-F23DqaJY4kJSFs000052dd@hotmail.com>
X-OriginalArrivalTime: 26 Sep 2004 01:50:04.0821 (UTC) FILETIME=[24D87450:01C4A36B]
X-IsSubscribed: yes

Hi all,


I've got a problem with pthread mutexes and cygwin. When I try to initialise 
a mutex
attribute variable, the related pthread call never returns a 0 (zero) value.

ie:

   int result = 0;
   pthread_mutexattr_t mutex_attr;

   if ((result = pthread_mutexattr_init(&mutex_attr)) != 0)
   {
      printf("Error - Description: %s\n",stderror(result));
      exit(EXIT_FAILURE);
   }

I'm using the latest snapshot as of 24th Sept, and also got the latest
gcc, I'm running on windows 2000 with sp4, I've also tried on win xp
with sp2 same cygwin install etc, yet the same problem occurs.


Same code compiles ok on NetBSD 1.62 and Mandrake 10.1 and gives
a non erroneous return code.


Any ideas, any help would be very much appreciated.


Regards



Arash Partow

__________________________________________________
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.
http://www.partow.net
















.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019