| 16 | pthread_mutex_init(&this->exceptionMutex, NULL); |
| 17 | } |
| 18 | virtual ~S3KeyWriter() { |
| 19 | try { |
| 20 | this->close(); |
| 21 | } catch (...) { |
| 22 | } |
| 23 | pthread_mutex_destroy(&this->mutex); |
| 24 | pthread_cond_destroy(&this->cv); |
| 25 | pthread_mutex_destroy(&this->exceptionMutex); |
| 26 | } |
| 27 | virtual void open(const S3Params& params); |
| 28 | |
| 29 | // write() attempts to write up to count bytes from the buffer. |