| 1467 | } |
| 1468 | |
| 1469 | void *joinThread(ThreadState *ts) { |
| 1470 | void *result; |
| 1471 | pthread_join(ts->id, NULL); |
| 1472 | result = ts->result; |
| 1473 | thread_lock.lock(); |
| 1474 | ts->running = false; |
| 1475 | ts->active = false; |
| 1476 | thread_lock.unlock(); |
| 1477 | return result; |
| 1478 | } |
| 1479 | |
| 1480 | static InterpreterThread *createInterpreterThread(const char **error) { |
| 1481 | ThreadState *ts = newThread(interpreter_thread, NULL, error); |
no test coverage detected