summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2000-01-07 05:54:32 +0000
committerrpj <rpj>2000-01-07 05:54:32 +0000
commit5cdc411216d113df38e98759c0bdbd8b204e1459 (patch)
treeb5ffd12bb98afacacc0bf9b2e931ad7c1da4ef66
parentedafc80b4a73b5193662438f3485d2d01b8fe82a (diff)
Minor changes.
-rw-r--r--ANNOUNCE18
-rw-r--r--Makefile6
-rw-r--r--Makefile.vc6
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 $<