This commit is contained in:
nakst 2022-02-02 22:24:07 +00:00
parent f8c4f764df
commit 8a9d52ea23
1 changed files with 1 additions and 1 deletions

View File

@ -4596,11 +4596,11 @@ int ExternalCharacterToByte(ExecutionContext *context, Value *returnValue) {
void ExternalCoroutineDone(CoroutineState *coroutine) {
#ifdef __linux__
sem_post(&externalCoroutineSemaphore);
pthread_mutex_lock(&externalCoroutineMutex);
coroutine->nextExternalCoroutine = externalCoroutineUnblockedList;
externalCoroutineUnblockedList = coroutine;
pthread_mutex_unlock(&externalCoroutineMutex);
sem_post(&externalCoroutineSemaphore);
#else
(void) coroutine;
#endif