summaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer/internal.h
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/internal.h
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/internal.h')
-rw-r--r--lib/sqfs/data_writer/internal.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/sqfs/data_writer/internal.h b/lib/sqfs/data_writer/internal.h
index 7af6ab4..fab6c50 100644
--- a/lib/sqfs/data_writer/internal.h
+++ b/lib/sqfs/data_writer/internal.h
@@ -45,15 +45,7 @@ typedef struct {
sqfs_u64 hash;
} frag_info_t;
-
-#ifdef WITH_PTHREAD
-typedef struct {
- sqfs_data_writer_t *shared;
- sqfs_compressor_t *cmp;
- pthread_t thread;
- sqfs_u8 scratch[];
-} compress_worker_t;
-#endif
+typedef struct compress_worker_t compress_worker_t;
struct sqfs_data_writer_t {
/* synchronization primitives */