зеркало из https://github.com/mozilla/pjs.git
make reader-writer locks
This commit is contained in:
Родитель
dfb813bd36
Коммит
c0f09a9163
|
@ -165,6 +165,7 @@ OBJS = \
|
||||||
io/$(OBJDIR)/prscanf.$(OBJ_SUFFIX) \
|
io/$(OBJDIR)/prscanf.$(OBJ_SUFFIX) \
|
||||||
io/$(OBJDIR)/prstdio.$(OBJ_SUFFIX) \
|
io/$(OBJDIR)/prstdio.$(OBJ_SUFFIX) \
|
||||||
threads/$(OBJDIR)/prcmon.$(OBJ_SUFFIX) \
|
threads/$(OBJDIR)/prcmon.$(OBJ_SUFFIX) \
|
||||||
|
threads/$(OBJDIR)/prrwlock.$(OBJ_SUFFIX) \
|
||||||
threads/$(OBJDIR)/prtpd.$(OBJ_SUFFIX) \
|
threads/$(OBJDIR)/prtpd.$(OBJ_SUFFIX) \
|
||||||
linking/$(OBJDIR)/prlink.$(OBJ_SUFFIX) \
|
linking/$(OBJDIR)/prlink.$(OBJ_SUFFIX) \
|
||||||
malloc/$(OBJDIR)/prmalloc.$(OBJ_SUFFIX) \
|
malloc/$(OBJDIR)/prmalloc.$(OBJ_SUFFIX) \
|
||||||
|
|
|
@ -41,12 +41,14 @@ endif
|
||||||
ifdef USE_PTHREADS
|
ifdef USE_PTHREADS
|
||||||
CSRCS = \
|
CSRCS = \
|
||||||
prcmon.c \
|
prcmon.c \
|
||||||
|
prrwlock.c \
|
||||||
prtpd.c \
|
prtpd.c \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
else
|
else
|
||||||
ifdef USE_BTHREADS
|
ifdef USE_BTHREADS
|
||||||
CSRCS = \
|
CSRCS = \
|
||||||
prcmon.c \
|
prcmon.c \
|
||||||
|
prrwlock.c \
|
||||||
prtpd.c \
|
prtpd.c \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
else
|
else
|
||||||
|
@ -55,6 +57,7 @@ CSRCS = \
|
||||||
prdump.c \
|
prdump.c \
|
||||||
prmon.c \
|
prmon.c \
|
||||||
prsem.c \
|
prsem.c \
|
||||||
|
prrwlock.c \
|
||||||
prcthr.c \
|
prcthr.c \
|
||||||
prtpd.c \
|
prtpd.c \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
@ -99,6 +99,8 @@ CSRCS = \
|
||||||
prftest2.c \
|
prftest2.c \
|
||||||
priotest.c \
|
priotest.c \
|
||||||
provider.c \
|
provider.c \
|
||||||
|
ranfile.c \
|
||||||
|
rwlocktest.c \
|
||||||
prpoll.c \
|
prpoll.c \
|
||||||
ranfile.c \
|
ranfile.c \
|
||||||
sel_spd.c \
|
sel_spd.c \
|
||||||
|
@ -185,6 +187,9 @@ else
|
||||||
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
|
||||||
LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX)
|
LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX)
|
||||||
LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX)
|
LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX)
|
||||||
|
ifdef PROFILE
|
||||||
|
LDOPTS += -PROFILE -MAP
|
||||||
|
endif # profile
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче