From 9ea91c044106537453ae6e13368b60ce532c885c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Dec 2019 15:44:50 +0100 Subject: Minor data writer cleanup Move "do block" function over to the rest of the block related code and internalizie the pthread worker structure. Signed-off-by: David Oberhollenzer --- lib/sqfs/data_writer/pthread.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/sqfs/data_writer/pthread.c') diff --git a/lib/sqfs/data_writer/pthread.c b/lib/sqfs/data_writer/pthread.c index 915ea2a..1830d07 100644 --- a/lib/sqfs/data_writer/pthread.c +++ b/lib/sqfs/data_writer/pthread.c @@ -7,6 +7,13 @@ #define SQFS_BUILDING_DLL #include "internal.h" +struct compress_worker_t { + sqfs_data_writer_t *shared; + sqfs_compressor_t *cmp; + pthread_t thread; + sqfs_u8 scratch[]; +}; + static void *worker_proc(void *arg) { compress_worker_t *worker = arg; -- cgit v1.2.3