From: Ross Johnson <rpj@ise.canberra.edu.au>
To: Michael Ambrus <Michael.Ambrus@abc.se>
Cc: "'pthreads-win32 mailing list'" <pthreads-win32@sourceware.cygnus.com>
Subject: Re: semaphores
Date: Tue, 20 Apr 1999 19:16:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.05.9904211200030.11953-100000@swan.canberra.edu.au> (raw)
In-Reply-To: <000101be8b69$a80724e0$0100a8c0@blade.ambrus.home>
On Tue, 20 Apr 1999, Michael Ambrus wrote:
> Hi,
> I've tried the new semaphores and they seem to work fine except that errno
> is not properly set as Ross said.
Are you using the 1999-04-07 snapshot? Anything before that should
be upgraded. Can you provide me with some code that illustrates the
problem? The simple test I wrote (tests/errno1.c in the source tree)
checks that two threads can set and retrieve values of errno
independently. The test succeeds for MSVC (tested on WinNT) and
Mingw32 (tested on Win98).
> I'm confused about the "pshared" attribute
> though. Should it not be != 0 if the semaphore is to be shared between
> processes/treads ?
pshared should be non-zero for shared semaphores, however,
pthreads-win32 doesn't yet support any process shared objects. So
sem_init should return EPERM if you set pshared != 0.
+----------------------+---+
| Ross Johnson | | E-Mail: rpj@ise.canberra.edu.au
| Info Sciences and Eng|___|
| University of Canberra | FAX: +61 6 2015227
| PO Box 1 |
| Belconnen ACT 2616 | WWW: http://willow.canberra.edu.au/~rpj/
| AUSTRALIA |
+--------------------------+
next prev parent reply other threads:[~1999-04-20 19:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-20 13:08 semaphores Michael Ambrus
1999-04-20 19:16 ` Ross Johnson [this message]
2002-05-30 7:11 semaphores Rob Fanner
2002-05-30 7:49 semaphores Bossom, John
2002-05-30 8:37 ` semaphores Phil Frisbie, Jr.
2002-05-30 9:33 ` semaphores Rob Fanner
2002-05-30 9:38 ` semaphores Rob Fanner
2002-05-30 22:32 ` semaphores Ross Johnson
2002-05-31 0:48 ` semaphores Rob Fanner
2002-06-02 21:35 ` semaphores Ross Johnson
2002-05-30 8:49 semaphores Nicolas EDEL
2002-06-05 4:25 Semaphores Platzer Wolfgang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.05.9904211200030.11953-100000@swan.canberra.edu.au \
--to=rpj@ise.canberra.edu.au \
--cc=Michael.Ambrus@abc.se \
--cc=pthreads-win32@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).