diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-05-09 21:41:43 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-05-09 21:49:41 -0600 |
commit | c280e280ba7528cc5fb88ae0be341d81f3b45e0a (patch) | |
tree | d8d5264536374ad464ba89d1a04ffc604edc643e /libdimension/Makefile.am | |
parent | 477eb270b9c338f7d9743595f8980fa81cdb083d (diff) | |
download | dimension-c280e280ba7528cc5fb88ae0be341d81f3b45e0a.tar.xz |
New dmnsn_new_thread() function.
Two advantages: first, waiters are guaranteed to wake if a dmnsn_error()
cancels a thread. Second, the thread library is fully abstracted over by
threads.{c,h} and progress.{c,h} now, though raytrace.c is still using
pthread_create() directly.
Diffstat (limited to 'libdimension/Makefile.am')
-rw-r--r-- | libdimension/Makefile.am | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am index b5b0be1..0d15ff9 100644 --- a/libdimension/Makefile.am +++ b/libdimension/Makefile.am @@ -49,8 +49,8 @@ lib_LTLIBRARIES = libdimension.la libdimension_la_SOURCES = $(nobase_include_HEADERS) \ ambient.c \ - prtree.c \ - prtree.h \ + prtree.c \ + prtree.h \ camera.c \ canvas.c \ canvas_pigment.c \ @@ -78,9 +78,12 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \ scene.c \ solid_pigment.c \ sphere.c \ - texture.c + texture.c \ + threads.c \ + threads.h +libdimension_la_CFLAGS = $(AM_CFLAGS) -pthread libdimension_la_LDFLAGS = -version-info 0:0:0 $(AM_LDFLAGS) -libdimension_la_LIBADD = -lm -lpthread +libdimension_la_LIBADD = -lm if PNG libdimension_la_SOURCES += png.c @@ -101,9 +104,9 @@ if PGO noinst_LTLIBRARIES = libdimension-pgo.la libdimension_pgo_la_SOURCES = $(libdimension_la_SOURCES) libdimension_pgo_la_LIBADD = $(libdimension_la_LIBADD) -lgcov -libdimension_pgo_la_CFLAGS = -fprofile-generate=$$(readlink -f $(builddir))/pgo +libdimension_pgo_la_CFLAGS = $(libdimension_la_CFLAGS) -fprofile-generate=$$(readlink -f $(builddir))/pgo -libdimension_la_CFLAGS = -fprofile-correction -fprofile-use=./pgo +libdimension_la_CFLAGS += -fprofile-correction -fprofile-use=./pgo all-local: libdimension.la @for Plo in .deps/libdimension_la*.Plo; do \ |