Tree [46cb13] snap-1999-02-21 /
History



File Date Author Commit
tests 1999-02-20 bje bje [46cb13] 1999-02-21 Ben Elliston <bje@cygnus.com>
COPYING.LIB 1998-10-02 bje bje [74a43f] 1998-10-02 Ben Elliston <bje@cygnus.com>
ChangeLog 1999-02-20 bje bje [60784d] 1999-02-21 Ben Elliston <bje@cygnus.com>
FAQ 1999-02-10 rpj rpj [eb222b] Update FAQ and MAINTAINERS.
MAINTAINERS 1999-02-10 rpj rpj [eb222b] Update FAQ and MAINTAINERS.
Makefile 1999-02-18 rpj rpj [b47991] Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rp...
Makefile.in 1999-02-18 rpj rpj [b47991] Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rp...
PROGRESS 1998-07-24 bje bje [b0196a] Update.
README 1999-02-18 rpj rpj [d17546] Update README.
acconfig.h 1998-10-03 bje bje [28706c] 1998-10-03 Ben Elliston <bje@cygnus.com>
attr.c 1999-02-02 rpj rpj [cc29ad] Mods to compile under Mingw32 egcs.
build.bat 1999-01-12 rpj rpj [bc3740] Wed Jan 13 09:34:52 1999 Ross Johnson <rpj@ix...
buildlib.bat 1999-01-03 rpj rpj [36f0ed] Merge John Bossom's code into the main trunk. S...
cancel.c 1999-02-09 rpj rpj [a3db25] Thu Feb 4 10:07:28 1999 Ross Johnson <rpj@ix...
cleanup.c 1999-02-08 rpj rpj [9e253e] Fri Feb 5 13:42:30 1999 Ross Johnson <rpj@sw...
condvar.c 1999-02-18 rpj rpj [b47991] Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rp...
config.guess 1998-09-13 bje bje [8b3277] 1998-09-13 Ben Elliston <bje@cygnus.com>
config.h 1999-02-17 rpj rpj [4283bb] Add config.h. This file is generated by running...
config.h.in 1998-10-03 bje bje [42fa8e] 1998-10-03 Ben Elliston <bje@cygnus.com>
config.sub 1998-09-13 bje bje [8b3277] 1998-09-13 Ben Elliston <bje@cygnus.com>
configure 1999-02-09 rpj rpj [a33932] Wed Feb 10 12:49:11 1999 Ross Johnson <rpj@ix...
configure.in 1998-10-04 bje bje [c6332c] 1998-10-04 Ben Elliston <bje@cygnus.com>
create.c 1999-02-18 rpj rpj [b47991] Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rp...
dll.c 1999-02-20 rpj rpj [4a3069] Sat Feb 20 16:03:30 1999 Ross Johnson <rpj@ix...
exit.c 1999-02-20 bje bje [60784d] 1999-02-21 Ben Elliston <bje@cygnus.com>
fork.c 1999-01-03 rpj rpj [36f0ed] Merge John Bossom's code into the main trunk. S...
global.c 1999-02-09 rpj rpj [a3db25] Thu Feb 4 10:07:28 1999 Ross Johnson <rpj@ix...
implement.h 1999-02-09 rpj rpj [a3db25] Thu Feb 4 10:07:28 1999 Ross Johnson <rpj@ix...
install-sh 1998-09-13 bje bje [8b3277] 1998-09-13 Ben Elliston <bje@cygnus.com>
misc.c 1999-02-18 rpj rpj [f0f43f] Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rp...
mutex.c 1999-02-20 rpj rpj [4a3069] Sat Feb 20 16:03:30 1999 Ross Johnson <rpj@ix...
private.c 1999-02-02 rpj rpj [cc29ad] Mods to compile under Mingw32 egcs.
pthread.def 1999-02-09 rpj rpj [721979] Wed Feb 10 12:49:11 1999 Ross Johnson <rpj@ix...
pthread.h 1999-02-20 bje bje [60784d] 1999-02-21 Ben Elliston <bje@cygnus.com>
sched.c 1999-01-03 rpj rpj [36f0ed] Merge John Bossom's code into the main trunk. S...
semaphore.c 1999-02-08 rpj rpj [9e253e] Fri Feb 5 13:42:30 1999 Ross Johnson <rpj@sw...
signal.c 1999-02-10 bje bje [fdfe65] Merged from precompiled branch. Don't mind me!
sync.c 1999-02-19 rpj rpj [2f5989] Fri Feb 19 16:2s1703:30 1999 Ross Johnson <rp...
tsd.c 1999-01-23 rpj rpj [623733] Fixing problems building with GNU compilers:

Read Me

This directory contains an implementation of pthreads for Win32. 

Mailing list
------------

There is a mailing list for discussing pthreads on Win32 which is
managed by Majordomo. To subscribe, send mail to majordomo@air.net.au
and place the fllowing text in the message body:

	subscribe pthreads-win32


Building the library with Cygwin32 or Mingw32
---------------------------------------------
Feb 18, 1999

If you have a suitable environment then you can run the configure script,
otherwise you should edit "Makefile" and "config.h" as required.

gcc cannot be used because the library requires C++ EH. g++ must be usedi
(but see below).

The DLL pthread.dll still cannot be built using g++ due to non thread-safe
exception handling in g++.  Thanks to Kevin Ruland for researching this
one. See the FAQ Question 2 for more information.

However, you can use the export library libpthread32.a built under
Mingw32 (not tested under Cygwin32) together with the pthread.dll built
with MSVC. Thanks to Anders Norlander for pointing this out.

For convenience, the following pre-built files can be downloaded from
the FTP site (see under "Availability" below):

	pthread.h	- the standard include file
	pthread.dll	- built with MSVC cl compiler
	pthread.lib	- built with MSVC cl compiler
	libpthread32.a	- built with Mingw32 (use with MSVC pthread.dll)

With these files in the same directory as your application myapp.c,
you could compile, link and run myapp.c under Mingw32 as follows:

	gcc -o myapp.exe myapp.c -I. -L. -lpthread32
	myapp

Or put pthread.dll in an appropriate directory in your PATH,
put libpthread32.a in MINGW_ROOT\i386-mingw32\lib, and
put pthread.h in MINGW_ROOT\i386-mingw32\include, then use:

	gcc -o myapp.exe myapp.c -lpthread32
	myapp


Availability
------------

The complete source code in either unbundled or tar/gzipped format
can be found at:
	ftp://sourceware.cygnus.com/pub/pthreads-win32

The pre-built DLL, export libraries and matching pthread.h can be found at:
	ftp://sourceware.cygnus.com/pub/pthreads-win32/dll-latest

Home page:
	http://sourceware.cygnus.com/pthreads-win32/

----
Ross Johnson
<rpj@ise.canberra.edu.au>