1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

protect against possible concurrency bug

This commit is contained in:
Sam 2013-12-15 09:22:50 +11:00
parent 885ea08cb0
commit 554c1c585d

View file

@ -80,6 +80,7 @@ typedef struct {
void* breaker(void *d) {
timeout_data* data = (timeout_data*)d;
usleep(data->timeout*1000);
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
v8::V8::TerminateExecution(data->isolate);
return NULL;
}