summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlarryh%netscape.com <devnull@localhost>1999-02-12 18:40:42 +0000
committerlarryh%netscape.com <devnull@localhost>1999-02-12 18:40:42 +0000
commit1c226926d80f909816c203f15654374da0909612 (patch)
treed828700c4a85de3029f1c8b355feb60bf1176b65
parent518b6d1fa213c9be1bb14e99e93c4e39e93ea10b (diff)
downloadnspr-hg-1c226926d80f909816c203f15654374da0909612.tar.gz
make reader-writer locks
-rw-r--r--pr/src/Makefile1
-rw-r--r--pr/src/threads/Makefile3
-rw-r--r--pr/tests/Makefile5
3 files changed, 9 insertions, 0 deletions
diff --git a/pr/src/Makefile b/pr/src/Makefile
index 5241380e..94c53857 100644
--- a/pr/src/Makefile
+++ b/pr/src/Makefile
@@ -165,6 +165,7 @@ OBJS = \
io/$(OBJDIR)/prscanf.$(OBJ_SUFFIX) \
io/$(OBJDIR)/prstdio.$(OBJ_SUFFIX) \
threads/$(OBJDIR)/prcmon.$(OBJ_SUFFIX) \
+ threads/$(OBJDIR)/prrwlock.$(OBJ_SUFFIX) \
threads/$(OBJDIR)/prtpd.$(OBJ_SUFFIX) \
linking/$(OBJDIR)/prlink.$(OBJ_SUFFIX) \
malloc/$(OBJDIR)/prmalloc.$(OBJ_SUFFIX) \
diff --git a/pr/src/threads/Makefile b/pr/src/threads/Makefile
index bc0e3986..e6973c01 100644
--- a/pr/src/threads/Makefile
+++ b/pr/src/threads/Makefile
@@ -41,12 +41,14 @@ endif
ifdef USE_PTHREADS
CSRCS = \
prcmon.c \
+ prrwlock.c \
prtpd.c \
$(NULL)
else
ifdef USE_BTHREADS
CSRCS = \
prcmon.c \
+ prrwlock.c \
prtpd.c \
$(NULL)
else
@@ -55,6 +57,7 @@ CSRCS = \
prdump.c \
prmon.c \
prsem.c \
+ prrwlock.c \
prcthr.c \
prtpd.c \
$(NULL)
diff --git a/pr/tests/Makefile b/pr/tests/Makefile
index 9ce3c007..de8b210c 100644
--- a/pr/tests/Makefile
+++ b/pr/tests/Makefile
@@ -99,6 +99,8 @@ CSRCS = \
prftest2.c \
priotest.c \
provider.c \
+ ranfile.c \
+ rwlocktest.c \
prpoll.c \
ranfile.c \
sel_spd.c \
@@ -185,6 +187,9 @@ else
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX)
LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX)
+ ifdef PROFILE
+ LDOPTS += -PROFILE -MAP
+ endif # profile
endif
endif
endif