diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-05 15:44:50 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-05 15:44:50 +0100 |
commit | 9ea91c044106537453ae6e13368b60ce532c885c (patch) | |
tree | 0a597427a9f22b7b77a76314ca10791bef00a262 /lib/sqfs/data_writer/internal.h | |
parent | e17da4c1150b1f8be9071c7403163ea6fb518c6e (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.h | 10 |
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 */ |