diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-12 14:23:17 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-12 16:43:01 +0100 |
commit | f274c6a208bb329298f83f05d0f9fe8e1a8b5423 (patch) | |
tree | f709fc72cdb07a0f059bf69e6db2439bf330c780 /lib/sqfs/data_writer/internal.h | |
parent | 6d4faedcb53f54253160f1717fac609f922ae0c7 (diff) |
Don't kick off the threads until the queue is full
The idea is as follows: Initially let the user submit blocks until the
queue is filled, then kick of the threads. Every thread will end up
getting a block without any waits until they completely deplete the
queue. Assuming the threads take longer to process the data than it
takes the main thread to do I/O and submit new blocks, the queue should
stay mostly filled with minimal wait times.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer/internal.h')
-rw-r--r-- | lib/sqfs/data_writer/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/data_writer/internal.h b/lib/sqfs/data_writer/internal.h index ea8fe79..24f520e 100644 --- a/lib/sqfs/data_writer/internal.h +++ b/lib/sqfs/data_writer/internal.h @@ -99,6 +99,7 @@ struct sqfs_data_writer_t { const sqfs_block_hooks_t *hooks; void *user_ptr; + bool notify_threads; /* file API */ sqfs_inode_generic_t *inode; |