diff options
author | Dan Liang <dan.liang@intel.com> | 2013-05-06 15:59:49 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:41 -0700 |
commit | 64296f29648d8045b14d235a6fcc4912270c167d (patch) | |
tree | 2e5b4515529303a5129633f63694244047b4210b /utils | |
parent | 049b25b53701a89f213b0097025489fe2fa88d24 (diff) | |
download | wrs_omxil_core-64296f29648d8045b14d235a6fcc4912270c167d.tar.gz |
wrs_omxil_core: set thread name
BZ: 105774
The hw codec's working thread is spawned from TimedEventQueue
thread and inherits the parent's name. So we cannot distinguish
them for analyzing purpose.
Change-Id: I893874309bc669a1e812085001b04b6fb88c490c
Signed-off-by: Dan Liang <dan.liang@intel.com>
Reviewed-on: http://android.intel.com:8080/106287
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/src/workqueue.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/src/workqueue.cpp b/utils/src/workqueue.cpp index 1d1fbf7..4b52788 100644 --- a/utils/src/workqueue.cpp +++ b/utils/src/workqueue.cpp @@ -17,6 +17,7 @@ */ #include <workqueue.h> +#include <sys/prctl.h> WorkQueue::WorkQueue() { @@ -100,6 +101,8 @@ void WorkQueue::ResumeWork(void) void WorkQueue::Run(void) { + prctl(PR_SET_NAME, (unsigned long)"IntelHwCodec", 0, 0, 0); + while (true) { pthread_mutex_lock(&wlock); if (stop) { |