After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707753 - thread-pool: Add cleanup to wait for the threadpool to finish
thread-pool: Add cleanup to wait for the threadpool to finish
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal normal
: 1.2.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-09 09:11 UTC by Ognyan Tonchev (redstar_)
Modified: 2014-02-25 22:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
thread-pool: Add cleanup to wait for the threadpool to finish (2.71 KB, patch)
2013-09-09 09:11 UTC, Ognyan Tonchev (redstar_)
committed Details | Review

Description Ognyan Tonchev (redstar_) 2013-09-09 09:11:18 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.
Comment 1 Sebastian Dröge (slomo) 2013-09-09 12:37:16 UTC
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