summaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer/pthread.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-05 15:44:50 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-05 15:44:50 +0100
commit9ea91c044106537453ae6e13368b60ce532c885c (patch)
tree0a597427a9f22b7b77a76314ca10791bef00a262 /lib/sqfs/data_writer/pthread.c
parente17da4c1150b1f8be9071c7403163ea6fb518c6e (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer/pthread.c')
-rw-r--r--lib/sqfs/data_writer/pthread.c7
1 files changed, 7 insertions, 0 deletions
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;