diff options
author | rpj <rpj> | 2000-01-07 05:54:32 +0000 |
---|---|---|
committer | rpj <rpj> | 2000-01-07 05:54:32 +0000 |
commit | 5cdc411216d113df38e98759c0bdbd8b204e1459 (patch) | |
tree | b5ffd12bb98afacacc0bf9b2e931ad7c1da4ef66 | |
parent | edafc80b4a73b5193662438f3485d2d01b8fe82a (diff) |
Minor changes.
-rw-r--r-- | ANNOUNCE | 18 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | Makefile.vc | 6 |
3 files changed, 22 insertions, 8 deletions
@@ -242,6 +242,14 @@ points in applications and libraries: pthreadCancelableWait pthreadCancelableTimedWait +The library includes a non-portable function to force using the much +faster critical sections as the basis for POSIX mutexes when these are +not the default for a particular version of Windows (eg. W9x). + + pthread_mutexattr_setforcecs_np + +For example, if you don't ever use pthread_mutex_trylock() in your +application. Availability ------------ @@ -325,10 +333,12 @@ pthreads-win32, using Mingw32's gcc or g++. Building the library with MSVC ------------------------------ -There is currently no Makefile for building the library under MSVC. -This is partly because my access to MSVC is via telnet to a remote NT -machine. There is a batch file "buildlib.bat" which will build the -library. +A simple makefile for building the library with MSVC is available. The +Makefile by default links the library to MSVCRT.DLL. If your application +uses another C runtime library like LIBCMT.LIB, please edit the Makefile to +avoid conflicts between C-libraries. + +There is also a batch file "buildlib.bat" which will build the library. Documentation @@ -11,6 +11,8 @@ DEVROOT=e: DLLDEST=$(DEVROOT)\dll LIBDEST=$(DEVROOT)\lib +CLIB=/MD + OBJ=attr.obj \ cancel.obj \ cleanup.obj \ @@ -44,10 +46,10 @@ install: all copy pthread.lib $(LIBDEST) pthread.dll: $(OBJ) pthread.def - cl /LDd /Zi /MD $(OBJ) /Fepthread.dll pthread.def + cl /LDd /Zi $(CLIB) $(OBJ) /Fepthread.dll pthread.def .c.obj:: - cl /W3 /MD /nologo /Yd /Zi /I. \ + cl /W3 $(CLIB) /nologo /Yd /Zi /I. \ /D_WIN32_WINNT=0x400 \ /DSTDCALL=_stdcall \ -c $< diff --git a/Makefile.vc b/Makefile.vc index 2c91069..b5b10e5 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -11,6 +11,8 @@ DEVROOT=e: DLLDEST=$(DEVROOT)\dll LIBDEST=$(DEVROOT)\lib +CLIB=/MD + OBJ=attr.obj \ cancel.obj \ cleanup.obj \ @@ -44,10 +46,10 @@ install: all copy pthread.lib $(LIBDEST) pthread.dll: $(OBJ) pthread.def - cl /LDd /Zi /MD $(OBJ) /Fepthread.dll pthread.def + cl /LDd /Zi $(CLIB) $(OBJ) /Fepthread.dll pthread.def .c.obj:: - cl /W3 /MD /nologo /Yd /Zi /I. \ + cl /W3 $(CLIB) /nologo /Yd /Zi /I. \ /D_WIN32_WINNT=0x400 \ /DSTDCALL=_stdcall \ -c $< |