summaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor/winpthread.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-13 14:18:53 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-15 18:09:30 +0100
commit6f4d85d2150c287432f7696659f22eeca0a0e1b2 (patch)
tree26c62c4d3e5c9ef68fe1fca006e3db9a18093f59 /lib/sqfs/block_processor/winpthread.c
parent6546c3f4a1d140024cb2ab2c90fbf192749a1bf7 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/winpthread.c')
-rw-r--r--lib/sqfs/block_processor/winpthread.c7
1 files changed, 2 insertions, 5 deletions
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;