コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: thread.cpp プロジェクト: Lyrius/epyx
 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;
 }