add a threading primitive API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1344 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-08-29 19:51:14 +00:00
parent 5264d235d2
commit b2c341f935
6 changed files with 498 additions and 3 deletions

View file

@ -198,7 +198,8 @@ noinst_PROGRAMS = \
get-binary-name-test \
ipacl-test \
hook-list-test \
memblock-test
memblock-test \
thread-test
if HAVE_SIGXCPU
noinst_PROGRAMS += \
@ -248,6 +249,11 @@ memblock_test_CFLAGS = $(AM_CFLAGS)
memblock_test_LDADD = $(AM_LDADD) libpulsecore.la
memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
thread_test_SOURCES = tests/thread-test.c
thread_test_CFLAGS = $(AM_CFLAGS)
thread_test_LDADD = $(AM_LDADD) libpulsecore.la
thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
mcalign_test_SOURCES = tests/mcalign-test.c
mcalign_test_CFLAGS = $(AM_CFLAGS)
mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la
@ -529,7 +535,9 @@ pulsecoreinclude_HEADERS = \
pulsecore/creds.h \
pulsecore/shm.h \
pulsecore/llist.h \
pulsecore/refcnt.h
pulsecore/refcnt.h \
pulsecore/mutex.h \
pulsecore/thread.h
lib_LTLIBRARIES += libpulsecore.la
@ -597,7 +605,9 @@ libpulsecore_la_SOURCES += \
pulsecore/winsock.h \
pulsecore/core-error.c pulsecore/core-error.h \
pulsecore/hook-list.c pulsecore/hook-list.h \
pulsecore/shm.c pulsecore/shm.h
pulsecore/shm.c pulsecore/shm.h \
pulsecore/mutex-posix.c pulsecore/mutex.h \
pulsecore/thread-posix.c pulsecore/thread.h
if OS_IS_WIN32
libpulsecore_la_SOURCES += \