From: Ross Johnson <rpj@ise.canberra.edu.au>
To: Aurelio Medina <AMedina@xcaliber.com>
Cc: "'Le Coent Yannick'" <Yannick.LeCoent@srit.siemens.fr>,
pthreads-win32@sourceware.cygnus.com
Subject: Re: Last version of message queues.
Date: Thu, 02 Aug 2001 18:19:00 -0000 [thread overview]
Message-ID: <3B69FBEA.B868A11D@ise.canberra.edu.au> (raw)
In-Reply-To: <1BDB01B13696D411BD6200D0B7C854EA011768FC@chi-prd-mail1.xcaliber.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]
Hi Aurelio,
Last time I looked you needed PTHREAD_PROCESS_SHARED mutexes
and condition variables. The code you just sent does the same
as last time.
_POSIX_THREAD_PROCESS_SHARED isn't defined in pthreads-win32, nor
in Linux I believe (although I could be out of date there).
For example, in mq_open() you have the following code:
if ( (i = pthread_mutexattr_init(&mattr)) != 0)
goto pthreaderr;
pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED);
i = pthread_mutex_init(&mqhdr->mqh_lock, &mattr);
pthread_mutexattr_destroy(&mattr); /* be sure to destroy */
if (i != 0)
goto pthreaderr;
if ( (i = pthread_condattr_init(&cattr)) != 0)
goto pthreaderr;
pthread_condattr_setpshared(&cattr, PTHREAD_PROCESS_SHARED);
i = pthread_cond_init(&mqhdr->mqh_wait, &cattr);
The *attr_setpshared() calls will be returning ENOSYS errors.
Ross
Aurelio Medina wrote:
>
> Here is my latest port of the POSIX message queue interface. I contributed
> my code to PThreads-Win32 some time ago. I'm not sure if its available on
> the Web Site.
>
> Anyhow, I'm using this implementation along with Pthreads-Win32 in a
> production real-time trading application with no problems.
>
> Hope this helps,
> Aurelio Medina
>
> -----Original Message-----
> From: Le Coent Yannick [ mailto:Yannick.LeCoent@srit.siemens.fr ]
> Sent: Thursday, August 02, 2001 9:27 AM
> To: pthreads-win32@sourceware.cygnus.com
> Subject: Last version of message queues.
>
> Hello,
>
> Can anyone tell me where I could find the latest sources for the message
> queues?
>
> Thanks a lot,
> Yannick LE COENT
> SIEMENS Réseaux Informatiques et Télécommunications
> 3, rue Blaise Pascal
> F - 22300 LANNION
>
> Tel.: +33-2-96 48 74 26
> Fax: +33-2-96 48 74 73
> E-mail: Yannick.LeCoent@srit.siemens.fr
> < mailto:Yannick.LeCoent@srit.siemens.fr >
>
> ------------------------------------------------------------------------
> Name: mqueue.c
> mqueue.c Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
>
> mqueue.hName: mqueue.h
> Type: unspecified type (application/octet-stream)
next prev parent reply other threads:[~2001-08-02 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 7:36 Aurelio Medina
2001-08-02 18:19 ` Ross Johnson [this message]
2001-08-02 21:48 ` Ross Johnson
-- strict thread matches above, loose matches on Subject: below --
2001-08-03 6:19 Aurelio Medina
2001-08-02 7:27 Le Coent Yannick
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=3B69FBEA.B868A11D@ise.canberra.edu.au \
--to=rpj@ise.canberra.edu.au \
--cc=AMedina@xcaliber.com \
--cc=Yannick.LeCoent@srit.siemens.fr \
--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).