Skip to content
Snippets Groups Projects
Commit 8ef62800 authored by rswindell's avatar rswindell
Browse files

Replace the other bogus listPushNode() with listSemPost() to signal list

semaphore (and get playnote_thread to terminate).
parent 8a710ab0
Branches
Tags
No related merge requests found
......@@ -1143,7 +1143,7 @@ void cterm_init(int height, int width, int xpos, int ypos, int backlines, unsign
/* Did someone call _init() without calling _end()? */
if(playnote_thread_running) {
if(sem_trywait(&playnote_thread_terminated)==-1) {
listPushNode(&notes, NULL);
listSemPost(&notes);
sem_wait(&playnote_thread_terminated);
}
sem_destroy(&playnote_thread_terminated);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment