From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14016 invoked by alias); 9 Sep 2004 14:12:21 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 14002 invoked from network); 9 Sep 2004 14:12:17 -0000 Received: from unknown (HELO motgate4.mot.com) (144.189.100.102) by sourceware.org with SMTP; 9 Sep 2004 14:12:17 -0000 Received: from il06exr06.mot.com (il06exr06.mot.com [129.188.137.136]) by motgate4.mot.com (Motorola/Motgate4) with ESMTP id i89ECGxm014800 for ; Thu, 9 Sep 2004 07:12:17 -0700 (MST) Received: from plnt059.comm.mot.com (plnt059.comm.mot.com [154.70.4.38]) by il06exr06.mot.com (Motorola/il06exr06) with ESMTP id i89ECF1J003544 for ; Thu, 9 Sep 2004 09:12:15 -0500 Received: by plnt059.comm.mot.com with Internet Mail Service (5.5.2657.72) id ; Thu, 9 Sep 2004 10:12:15 -0400 Message-ID: <31173C0B4EF5D611A021009027CB2CBD04EE2CD1@fl08exm04> From: Blanco Alejandro-EAB005 To: "'Alexander Terekhov'" Cc: "'Ross Johnson'" , pthreads-win32@sources.redhat.com Subject: RE: FW: sem_getvalue() Date: Thu, 09 Sep 2004 14:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2004/txt/msg00113.txt.bz2 What's xbd? I was looking at an appendix for a POSIX spec and it defined it non-optionally. -----Original Message----- From: Alexander Terekhov [mailto:TEREKHOV@de.ibm.com] Sent: Thursday, September 09, 2004 9:55 AM To: Blanco Alejandro-EAB005 Cc: 'Ross Johnson'; pthreads-win32@sources.redhat.com Subject: RE: FW: sem_getvalue() > "The updated value represents an actual semaphore value..." Semaphore value is either zero or positive. See XBD. Reporting number of waiters as negative value is "optional" and you shall not rely on this feature. As I said, stay away from semas (if you have a choice). regards, alexander.