24 std::cout <<
"[PthrWriterBufPool] The PoolSize of buffer must > 1" << std::endl;
29 sem_init(&m_semIn, 0, (PoolSize-1));
30 sem_init(&m_semOut, 0, 0);
31 sem_init(&m_semFinalize, 0, 0);
33 for (
int i = 0; i < PoolSize; ++i ) {
38 m_writer =
new Writer(
arg);
41 pthread_create(&m_tid, NULL, thread_writing, (
void*)
this);