mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[mpp_thread]: fix invalid thread_join when thread is not started
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@193 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -61,6 +61,7 @@ void MppThread::start()
|
|||||||
|
|
||||||
void MppThread::stop()
|
void MppThread::stop()
|
||||||
{
|
{
|
||||||
|
if (MPP_THREAD_UNINITED != mStatus) {
|
||||||
mStatus = MPP_THREAD_STOPPING;
|
mStatus = MPP_THREAD_STOPPING;
|
||||||
signal();
|
signal();
|
||||||
|
|
||||||
@@ -70,5 +71,6 @@ void MppThread::stop()
|
|||||||
mFunction, mContext);
|
mFunction, mContext);
|
||||||
|
|
||||||
mStatus = MPP_THREAD_UNINITED;
|
mStatus = MPP_THREAD_UNINITED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user