thread-pool: Add cleanup to wait for the threadpool to finish
authorOgnyan Tonchev <ognyan@axis.com>
Mon, 9 Sep 2013 09:05:26 +0000 (11:05 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 9 Sep 2013 12:36:12 +0000 (14:36 +0200)
commit258f63b8ac9a39e313b025f014e504dd56e8bb20
tree14e17bc27f4fb7374c3e94f4cdef828858ddf295
parent23b3f21595b8de261a3de3f2919c80034152ef6e
thread-pool: Add cleanup to wait for the threadpool to finish

Also fix race condition if two threads are asking for the first
thread from the thread pool at once. This would case two internal
GThreadPools to be created.

https://bugzilla.gnome.org/show_bug.cgi?id=707753
gst/rtsp-server/rtsp-thread-pool.c
gst/rtsp-server/rtsp-thread-pool.h