This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
POSIX Message Queues for Win32
- To: pthreads-win32 at sourceware dot cygnus dot com
- Subject: POSIX Message Queues for Win32
- From: aureliom at crt dot com
- Date: Thu, 20 Jul 2000 11:20:24 -0500
To all,
I had begun a port of the POSIX Message Queues using Pthread-Win32 but due
to time constraints I have very little time to continue. If someone would
like to finish it and provide it to this effort I would really appreciate
it. Anyhow, included is the source and header file.
NOTE:
I used Richard Steven's POSIX Message Queues source code and Win32 Memory
Mapped Files to implement it. Hopefully I am very close but without testing
I can't be sure.
I was the one who contributed the POSIX Read/Write Locks to Pthread-Win32.
I was hoping to also contribute the POSIX Message Queues but find myself
with very little time.
Thanks,
Aurelio Medina
<<posix_mqueue.c>> <<posix_mqueue.h>>
> -----Original Message-----
> From: Hugues Talbot [SMTP:Hugues.Talbot@cmis.CSIRO.AU]
> Sent: Thursday, July 20, 2000 4:18 AM
> To: pthreads-win32@sourceware.cygnus.com
> Subject: Thank you guys, thank you!
>
>
> Hello
>
> I'd like to thank all the developers, testers, participants,
> etc, of the pthread library for win32.
>
> I was expecting to spend days, if not weeks to port this
> largish application from Unix to Windows, which of course makes
> heavy uses of threads, mutexes, etc. Not to mention sockets, and
> it's a GUI application...
>
> libpthread32 made it a breeze. Not a single problem, just
> a straight recompile!
>
> For the record, I'm using mingw32, both natively on windows (this
> is one verrry slooow compiler, my God) and as a cross-compiler from
> Linux. The base compiler is gcc-2.95.2 with latest patches and
> libraries from Mumit Khan. I got libpthread working both with
> the CRTDLL and the MSVCRT back end, on windows NT 4.0. I used the
> excellent advice from Thomas Sailer to produce the libpthread.a
> to compile against, which should be in the FAQ I guess.
>
> The GUI is using FLTK (www.fltk.org). Recommended if you are going
> to do some cross-platform GUI work.
>
>
> Now for some additional question: how is it possible to compile
> against the pthread.lib, not the DLL, to produce a (more) static
> executable, so that I don't have to ship pthread.dll? Sorry if this
> is an elementary question, I'm new to this.
>
> Also, does anyone know of a useful implementation of the
> fork() Unix system call ?
>
> And finally, does anyone know of an implementation of
> POSIX shared memory scheme for windows?
>
> Mainly I'd like to thank you guys so much again!
>
> --------
> Hugues Talbot, CSIRO Mathematical & Information Sciences
> Locked Bag 17, Building E6B, Macquarie University North Ryde
> NSW 2113 Australia Ph: 61 2 9325 3208 Fax: 61 2 9325 3200
>
> "Man, if you gotta ask you'll never know."
> Louis Armstrong, in response to the question "What is Jazz?"
>
posix_mqueue.c
posix_mqueue.h