summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-12-28 23:13:20 +0300
committerFire-Head <Fire-Head@users.noreply.github.com>2020-12-28 23:13:20 +0300
commitad560ffaf9a302c5daaa733467d6f6a42de657cf (patch)
tree03acc022bd4abb01c802cd0f9865b7bbeb8ec434 /src
parent5ebcef2718f8e5152570ac83a8c3ad27ef62b324 (diff)
multiple instances sema fix
Diffstat (limited to 'src')
-rw-r--r--src/core/CdStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CdStream.cpp b/src/core/CdStream.cpp
index f987dea5..4bb31ea4 100644
--- a/src/core/CdStream.cpp
+++ b/src/core/CdStream.cpp
@@ -73,7 +73,11 @@ CdStreamInitThread(void)
gChannelRequestQ.size = gNumChannels + 1;
ASSERT(gChannelRequestQ.items != nil );
+#ifdef FIX_BUGS
+ gCdStreamSema = CreateSemaphore(nil, 0, 5, nil);
+#else
gCdStreamSema = CreateSemaphore(nil, 0, 5, "CdStream");
+#endif
if ( gCdStreamSema == nil )
{