Bug fix: No lock was obtained for setting up a fifo object

This commit is contained in:
Thomas Schmitt 2018-10-10 18:03:24 +02:00
parent af65852dc8
commit 042fe178bf
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2018.10.10.160024"
#define Cdrskin_timestamP "2018.10.10.160301"

View File

@ -122,6 +122,8 @@ struct w_list
static struct w_list *workers = NULL;
static void *fifo_worker_func(struct w_list *w);
int burn_async_manage_lock(int mode)
{
@ -209,7 +211,7 @@ static void add_worker(int w_type, struct burn_drive *d,
#endif /* Libburn_create_detached_threadS */
/* Worker specific locks are to be released early by the worker */
if (f == (WorkerFunc) burn_fifo_source_shoveller)
if (f == (WorkerFunc) fifo_worker_func)
burn_async_manage_lock(BURN_ASYNC_LOCK_OBTAIN);
if (pthread_create(&a->thread, attr_pt, f, a)) {