From 6f4d85d2150c287432f7696659f22eeca0a0e1b2 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 13 Feb 2020 14:18:53 +0100 Subject: Cleanup: block processor: remove delayed thread notification Under the assumption that block processing is CPU bound and not I/O bound, this is entirely useless. Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/winpthread.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/sqfs/block_processor/winpthread.c') diff --git a/lib/sqfs/block_processor/winpthread.c b/lib/sqfs/block_processor/winpthread.c index a91f001..6d7c843 100644 --- a/lib/sqfs/block_processor/winpthread.c +++ b/lib/sqfs/block_processor/winpthread.c @@ -288,8 +288,7 @@ fail_init: } #endif -int append_to_work_queue(sqfs_block_processor_t *proc, sqfs_block_t *block, - bool signal_threads) +int append_to_work_queue(sqfs_block_processor_t *proc, sqfs_block_t *block) { int status; @@ -312,9 +311,7 @@ int append_to_work_queue(sqfs_block_processor_t *proc, sqfs_block_t *block, block = NULL; } out: - if (signal_threads) - SIGNAL_ALL(&proc->queue_cond); - + SIGNAL_ALL(&proc->queue_cond); UNLOCK(&proc->mtx); free(block); return 0; -- cgit v1.2.3