thread_pthread.c: spelling ("cancellation")
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4651ef77d2
commit
92dd6d8445
@ -1745,7 +1745,7 @@ mjit_worker(void *arg)
|
|||||||
void (*worker_func)(void) = (void(*)(void))arg;
|
void (*worker_func)(void) = (void(*)(void))arg;
|
||||||
|
|
||||||
if (pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) != 0) {
|
if (pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) != 0) {
|
||||||
fprintf(stderr, "Cannot enable cancelation in MJIT worker\n");
|
fprintf(stderr, "Cannot enable cancellation in MJIT worker\n");
|
||||||
}
|
}
|
||||||
#ifdef SET_CURRENT_THREAD_NAME
|
#ifdef SET_CURRENT_THREAD_NAME
|
||||||
SET_CURRENT_THREAD_NAME("ruby-mjitworker"); /* 16 byte including NUL */
|
SET_CURRENT_THREAD_NAME("ruby-mjitworker"); /* 16 byte including NUL */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user