gsttaskpool: Do not block tasks while cleaning up the taskpool
authorSantiago Carot-Nemesio <scarot@twilio.com>
Fri, 8 Mar 2019 15:19:29 +0000 (16:19 +0100)
committerSantiago Carot-Nemesio <scarot@twilio.com>
Fri, 8 Mar 2019 16:27:30 +0000 (17:27 +0100)
commit706e10ad0586bf98c829cdfaa079118447b94ef5
tree70d7432ac5098e33453b33d2e6de3bb5a7e54bd6
parentb5286f056082b10a32cbf548778e45d1ab4d1bca
gsttaskpool: Do not block tasks while cleaning up the taskpool

There is a deadlock if any thread from the pool tries to push
a new task while other thread is waiting for the pool of threads
to finish. With this patch the thread will get an error when it
tries to add a new task while the taskpool is being cleaned up.
gst/gsttaskpool.c