summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-12-28 23:08:47 +0300
committerFire-Head <Fire-Head@users.noreply.github.com>2020-12-28 23:08:47 +0300
commit8af298c668f825785ca83bc212d86160ceb86b83 (patch)
tree99a1e6a6a33c15de61ade17b6f5cca97d72e3b87
parent9c2f1b0833ec28ea52162d55560fca8f89341335 (diff)
multiple instances sema fix
-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 )
{