From 5cdc411216d113df38e98759c0bdbd8b204e1459 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 7 Jan 2000 05:54:32 +0000 Subject: Minor changes. --- ANNOUNCE | 18 ++++++++++++++---- Makefile | 6 ++++-- Makefile.vc | 6 ++++-- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index b3b1f80..3a46bab 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -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 diff --git a/Makefile b/Makefile index 2c91069..b5b10e5 100644 --- a/Makefile +++ b/Makefile @@ -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 $< -- cgit v1.2.3