20 #ifndef TPIE_COMPRESSED_THREAD_H
21 #define TPIE_COMPRESSED_THREAD_H
27 #include <tpie/tpie_export.h>
33 #include <tpie/file_accessor/byte_stream_accessor.h>
44 typedef std::shared_ptr<compressor_buffer> buffer_t;
46 typedef std::mutex mutex_t;
48 static stream_size_type subtract_block_header(stream_size_type dataOffset);
69 typedef std::unique_lock<compressor_thread::mutex_t> lock_t;
79 ptime t3 = ptime::now();
81 increment_user(0, (stream_size_type)(ptime::seconds(t1, t2)*1000000));
83 increment_user(1, (stream_size_type)(ptime::seconds(t2, t3)*1000000));
98 #endif // TPIE_COMPRESSED_THREAD_H