void* Thread::_thread_start(void *arg) { try { // Call Thread::run() Epyx::Thread *self = (Epyx::Thread*) arg; EPYX_ASSERT(self != NULL); Thread::setName(self->name); self->run(); } catch (std::exception& e) { log::fatal << "Thread exception !" << log::endl; log::fatal << e.what() << log::endl; } return NULL; }
void* Thread::_thread_start(void *arg) { try { // Call Thread::run() Epyx::Thread *self = (Epyx::Thread*) arg; EPYX_ASSERT(self != NULL); detail::thread_infos->reset(self->info); self->run(); } catch (Exception e) { log::fatal << "Thread exception !" << log::endl; log::fatal << e << log::endl; } return NULL; }