summaryrefslogtreecommitdiffstats
path: root/src/core/CdStreamPosix.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-24 21:26:56 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-24 21:26:56 +0200
commita12789c632897c2f1339f806158e84c565bd8580 (patch)
treef7eb31c812c3c194eeee0c8defe440e675eae567 /src/core/CdStreamPosix.cpp
parentmark reflections done (diff)
parentModel indices edits (diff)
downloadre3-a12789c632897c2f1339f806158e84c565bd8580.tar
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.gz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.bz2
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.lz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.xz
re3-a12789c632897c2f1339f806158e84c565bd8580.tar.zst
re3-a12789c632897c2f1339f806158e84c565bd8580.zip
Diffstat (limited to 'src/core/CdStreamPosix.cpp')
-rw-r--r--src/core/CdStreamPosix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/CdStreamPosix.cpp b/src/core/CdStreamPosix.cpp
index fdc63a05..5c8d1b16 100644
--- a/src/core/CdStreamPosix.cpp
+++ b/src/core/CdStreamPosix.cpp
@@ -216,10 +216,12 @@ CdStreamShutdown(void)
#ifndef ONE_THREAD_PER_CHANNEL
gCdStreamThreadStatus = 2;
sem_post(gCdStreamSema);
+ pthread_join(_gCdStreamThread, nil);
#else
for ( int32 i = 0; i < gNumChannels; i++ ) {
gpReadInfo[i].nThreadStatus = 2;
sem_post(gpReadInfo[i].pStartSemaphore);
+ pthread_join(gpReadInfo[i].pChannelThread, nil);
}
#endif
}