GNOME Bugzilla – Bug 707753
thread-pool: Add cleanup to wait for the threadpool to finish
Last modified: 2014-02-25 22:27:59 UTC
Created attachment 254453 [details] [review] thread-pool: Add cleanup to wait for the threadpool to finish Add gst_rtsp_thread_pool_cleanup which waits for all tasks to be stopped and frees all allocated resources for the internal pool. This function is intended to be used mainly in test suites to ensure proper cleanup of internal data structures.
commit 258f63b8ac9a39e313b025f014e504dd56e8bb20 Author: Ognyan Tonchev <ognyan@axis.com> Date: Mon Sep 9 11:05:26 2013 +0200 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