diff options
author | Adrian Graber <adrian@adriangraber.com> | 2020-10-24 16:12:10 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-24 17:14:41 +0200 |
commit | 28fb26f79233157c961a1b4e1c8f2286e570c5df (patch) | |
tree | ffcb264ea72cb292d295e1ce042d1de84055316a /src/core/CdStreamPosix.cpp | |
parent | Merge pull request #779 from Sergeanur/VC/Pickups (diff) | |
download | re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar.gz re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar.bz2 re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar.lz re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar.xz re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.tar.zst re3-28fb26f79233157c961a1b4e1c8f2286e570c5df.zip |
Diffstat (limited to 'src/core/CdStreamPosix.cpp')
-rw-r--r-- | src/core/CdStreamPosix.cpp | 2 |
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 } |