Esempio n. 1
0
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.");
    }
}
Esempio n. 2
0
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.");
    }
}
Esempio n. 3
0
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.");
    }
}
Esempio n. 4
0
GALGAS_data GALGAS_data::constructor_emptyData (UNUSED_LOCATION_ARGS) {
    return GALGAS_data (C_Data ()) ;
}