message queues & timers

Ross Johnson rpj@ise.canberra.edu.au
Mon Feb 24 08:22:00 GMT 2003


Hi,

[Sorry for the delay in responding. I've only just returned from 
vacation today.]

The reason Aurelio's message queues aren't in the distribution is 
that they rely on PROCESS_SHARED attribute objects, which are not 
implemented in pthreads-win32, and therefore they won't work for 
IPC. They do work within the same process though, but this is too 
limited IMO. If included, I think they would be a trap for 
programmers expecting to use them for IPC. See for example:

http://sources.redhat.com/ml/pthreads-win32/2001/msg00101.html

Regards.
Ross

Medina Sr, Aurelio wrote:
> If I remember correctly it was left out because it's not technically part of the POSIX Threads standard.  It would be nice however if it was included as a separately library that came packaged with PThreads-Win32.  
> 
> Aurelio
> -----Original Message-----
> From: Blanco Alejandro-EAB005 [mailto:Alex.Blanco@motorola.com]
> Sent: Friday, February 14, 2003 11:16 AM
> To: 'pthreads-win32@sources.redhat.com'
> Subject: message queues & timers
> 
> 
> I found many threads on Aurelio Medina's message queue implementation, but it does not appear to be in the distribution.  I grabbed the latest version from the mailing list, but is there a reason not to put it in the release?
> 
> Is there support for timers?  I know without signals it is hard to have general purpose support, but what about just supporting SIGEV_THREAD that uses a notification function?
> 
> Alex Blanco
>  




More information about the Pthreads-win32 mailing list