diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-10 13:08:26 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-10 13:08:26 +0200 |
commit | 1fe6b2aa4158516f9c6cf5751cc68aafef1af620 (patch) | |
tree | 2047e37b6101f35c5dd55c59b885be22fe570407 /lib/sqfshelper | |
parent | 49c2c4a8c8a8eb32a7d5fdbf4b1eba24bb23efe7 (diff) |
Make the thread pool queue backlog user configurable
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper')
-rw-r--r-- | lib/sqfshelper/data_writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfshelper/data_writer.c b/lib/sqfshelper/data_writer.c index 463eb60..d6a935b 100644 --- a/lib/sqfshelper/data_writer.c +++ b/lib/sqfshelper/data_writer.c @@ -452,7 +452,7 @@ int write_data_from_fd_condensed(data_writer_t *data, file_info_t *fi, data_writer_t *data_writer_create(sqfs_super_t *super, sqfs_compressor_t *cmp, sqfs_file_t *file, size_t devblksize, - unsigned int num_jobs) + unsigned int num_jobs, size_t max_backlog) { data_writer_t *data = calloc(1, sizeof(*data)); @@ -462,7 +462,7 @@ data_writer_t *data_writer_create(sqfs_super_t *super, sqfs_compressor_t *cmp, } data->proc = sqfs_block_processor_create(super->block_size, cmp, - num_jobs, data, + num_jobs, max_backlog, data, block_callback); data->cmp = cmp; data->super = super; |