BugFix: Termination by ctl + C

Update: API mode is configurable

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2016-09-25 17:06:05 +09:00
parent 2537dd76dd
commit e3dd9fa01a
10 changed files with 60 additions and 38 deletions

View File

@@ -511,7 +511,7 @@ void Thread::stopProcess(void)
_stopProcessEvent->post();
}
void Thread::testThreadCancel(void)
void Thread::cancel(void)
{
pthread_testcancel();
pthread_cancel(_threadID);
}