- pthread_cond_init(&m_cond_output_data, 0);
- pthread_create(&m_thread_id, 0, tfunc, this);
+
+ m_no_threads = no_threads;
+ m_thread_id = new pthread_t[no_threads];
+ int i;
+ for (i = 0; i<m_no_threads; i++)
+ pthread_create(&m_thread_id[i], 0, tfunc, this);