| 21 | } |
| 22 | |
| 23 | ChunkBuffer::ChunkBuffer(const S3Url& s3Url, S3KeyReader& reader, const S3MemoryContext& context) |
| 24 | : s3Url(s3Url), chunkData(context), offsetMgr(reader.getOffsetMgr()), sharedKeyReader(reader) { |
| 25 | s3Interface = NULL; |
| 26 | Range range = offsetMgr.getNextOffset(); |
| 27 | curFileOffset = range.offset; |
| 28 | chunkDataSize = range.length; |
| 29 | status = ReadyToFill; |
| 30 | eof = false; |
| 31 | curChunkOffset = 0; |
| 32 | pthread_mutex_init(&this->statusMutex, NULL); |
| 33 | pthread_cond_init(&this->statusCondVar, NULL); |
| 34 | } |
| 35 | |
| 36 | ChunkBuffer::~ChunkBuffer() { |
| 37 | pthread_mutex_destroy(&this->statusMutex); |
nothing calls this directly
no test coverage detected