From: Alexander Terekhov <TEREKHOV@de.ibm.com>
To: Ross Johnson <Ross.Johnson@homemail.com.au>
Cc: Pthreads-Win32 list <pthreads-win32@sources.redhat.com>
Subject: Re: New pthreads-w32 releases available: versions 2.3.0 and 1.7.0
Date: Thu, 14 Apr 2005 16:19:00 -0000 [thread overview]
Message-ID: <OF6A0BC0C8.DF69ABCD-ONC1256FE3.00582DEF-C1256FE3.00597E78@de.ibm.com> (raw)
In-Reply-To: <1113378289.9335.83.camel@desk.home>
[... named mutex and atrocities of MS impl ...]
It's not that hard to implement it using a map with pointers (to
"normal" mutex + refcount structure and addresses of once_control
variables as keys).
[... Windows Interlocked stuff ...]
In the meantime, MS has documented that they are fully fenced
(newer Acq/Rel stuff aside for a moment).
But you'll need acquire semantics for check on fast path. Not a
problem on IA32 (where all loads do have acquire semantics), but
on IA64 (lets pretend that it's still alive ;-) ), you'll need a
bit of assembly to make it fast.
regards,
alexander.
next prev parent reply other threads:[~2005-04-14 16:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 7:46 Ross Johnson
2005-04-12 10:10 ` Alexander Terekhov
2005-04-13 7:45 ` Ross Johnson
2005-04-13 8:21 ` Gottlob Frege
2005-04-14 16:19 ` Alexander Terekhov [this message]
2005-04-15 3:08 ` Ross Johnson
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=OF6A0BC0C8.DF69ABCD-ONC1256FE3.00582DEF-C1256FE3.00597E78@de.ibm.com \
--to=terekhov@de.ibm.com \
--cc=Ross.Johnson@homemail.com.au \
--cc=pthreads-win32@sources.redhat.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).