[mpp_dec]:fixed destroy lock

[vpu_mem]: add return fail when mallocliner buffer fail 

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@529 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenSiyong
2016-01-15 09:27:07 +00:00
parent 0b48769422
commit e4d3871dbf
3 changed files with 15 additions and 6 deletions

View File

@@ -62,9 +62,10 @@ void MppThread::start()
void MppThread::stop()
{
if (MPP_THREAD_UNINITED != mStatus) {
lock();
mStatus = MPP_THREAD_STOPPING;
signal();
unlock();
void *dummy;
pthread_join(mThread, &dummy);
thread_dbg(MPP_THREAD_DBG_FUNCTION, "mThread %p mContext %p destroy success\n",