From 44f77290fa2e30c5f2175844f9a58b08db111410 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 27 May 2006 04:03:41 +0000
Subject: [PATCH] Mutex-protect the note queue.

---
 src/conio/cterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/cterm.c b/src/conio/cterm.c
index 891591b18c..2445d13d00 100644
--- a/src/conio/cterm.c
+++ b/src/conio/cterm.c
@@ -1154,7 +1154,7 @@ void cterm_init(int height, int width, int xpos, int ypos, int backlines, unsign
 	}
 	/* Fire up note playing thread */
 	if(!playnote_thread_running) {
-		listInit(&notes, LINK_LIST_SEMAPHORE);
+		listInit(&notes, LINK_LIST_SEMAPHORE|LINK_LIST_MUTEX);
 		sem_init(&note_completed_sem,0,0);
 		sem_init(&playnote_thread_terminated,0,0);
 		_beginthread(playnote_thread, 0, NULL);
-- 
GitLab