mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00
commit the avc encode code, now avc encode process is ok
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1048 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -58,9 +58,11 @@ void MppThread::start()
|
||||
// NOTE: set status here first to avoid unexpected loop quit racing condition
|
||||
mStatus = MPP_THREAD_RUNNING;
|
||||
if (0 == pthread_create(&mThread, &attr, mFunction, mContext)) {
|
||||
#ifndef ARMLINUX
|
||||
RK_S32 ret = pthread_setname_np(mThread, mName);
|
||||
if (ret)
|
||||
mpp_err("thread %p setname %s failed\n", mFunction, mName);
|
||||
#endif
|
||||
|
||||
thread_dbg(MPP_THREAD_DBG_FUNCTION, "thread %s %p context %p create success\n",
|
||||
mName, mFunction, mContext);
|
||||
@@ -120,6 +122,7 @@ void SetThreadName(DWORD dwThreadID, const char* threadName)
|
||||
}
|
||||
|
||||
|
||||
#ifndef ARMLINUX
|
||||
/*
|
||||
* add pthread_setname_np for windows
|
||||
*/
|
||||
@@ -129,6 +132,7 @@ int pthread_setname_np(pthread_t thread, const char *name)
|
||||
SetThreadName(dwThreadID, name);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user