C_Thread::C_Thread(t_ThreadFunc f, void* args) : m_Thread(0), m_Data(C_Data(f, args)) { int ret=pthread_create(&m_Thread, NULL, M_ThreadInit, &m_Data); if(ret) { throw std::runtime_error("Error creating a thread."); } }
C_Thread::C_Thread(t_ThreadFunc f, void* args) : m_Thread(0), m_Data(C_Data(f, args)) { m_Thread=(HANDLE)_beginthreadex(NULL,0,M_ThreadInit,&m_Data,0,NULL); if(!m_Thread) { throw std::runtime_error("Error creating a thread."); } }
void C_Thread::M_Start(t_ThreadFunc f, void* args) { m_Thread=0; m_Data=C_Data(f, args); int ret=pthread_create(&m_Thread, NULL, M_ThreadInit, &m_Data); if(ret) { throw std::runtime_error("Error creating a thread."); } }
GALGAS_data GALGAS_data::constructor_emptyData (UNUSED_LOCATION_ARGS) { return GALGAS_data (C_Data ()) ; }