aboutsummaryrefslogtreecommitdiff
path: root/utils/src/workqueue.cpp
AgeCommit message (Collapse)Author
2014-07-21wrs_core: reset the stop flag if the decoder thread restarts from stop stateywan171
BZ: 134837 reset the stop flag if the decoder thread restarts from stop state to fix cts MediaCodec bug. Change-Id: Ic8f22cb6eee576e4afa61197cbc390834ee7eb1b Signed-off-by: ywan171 <yi.a.wang@intel.com> Reviewed-on: http://android.intel.com:8080/130318 Reviewed-by: Zhou, ChuX <chux.zhou@intel.com> Reviewed-by: Feng, Wei <wei.feng@intel.com> Reviewed-by: Liang, Dan <dan.liang@intel.com> Reviewed-by: Chen, Tianmi <tianmi.chen@intel.com> Reviewed-by: Shi, PingX <pingx.shi@intel.com> Tested-by: Shi, PingX <pingx.shi@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
2014-07-21wrs_omxil_core: set thread nameDan Liang
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>
2014-07-21wrs-utils: Resolve potential race condition in workqueue.Chang Ying
BZ: 18528 This is the fix for BZ: 18006 Protect access to a status variable in workqueue by a lock, otherwise may cause endless wait. Change-Id: Iccb2a19664852af29cd939f2591be44e7ce6eb3c Signed-off-by: Chang Ying <ying.chang@intel.com> Reviewed-on: http://android.intel.com:8080/30052 Reviewed-by: Ji, GuoliangX <guoliangx.ji@intel.com> Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com> Reviewed-by: Ding, Haitao <haitao.ding@intel.com> Tested-by: Ding, Haitao <haitao.ding@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
2014-07-21Merge of 0427 GAID fixesTao Tao
Change-Id: Ia33c9e1c3e21e9f68c867a1b5f8616c0afcd056e
2014-07-21copyright: apply Apache License, Version 2.0Ho-Eun Ryu
2014-07-21utils:workqueue: add Pause/Resume for workqueue controlHo-Eun Ryu
we have following workqueue control functions int StartWork(bool executing); executing == true : start workqueue thread with executing state != true : start workqueue thread with paused state void StopWork(void); join workqueue thread and exit void PauseWork(void); pause workqueue thread, it guarantees any workqueue callback's not running when it returns. void ResumeWork(void); resume paused workqueue thread
2014-07-21misc: add windriver standard copyrightHo-Eun Ryu
2014-07-21misc: add copyright and authorHo-Eun Ryu
2014-07-21utils:workqueue: fix bug, wait condition of empty works list (!works)Ho-Eun Ryu
2014-07-21utils:workqueue: add CancelScheduledWork() functionHo-Eun Ryu
this function discards qeueud works in works list to cancel queued job;
2014-07-21utils:workqueue: fix bug in lock works listHo-Eun Ryu
it had a race condition against list manipulation while processing Work() this patch prevents race condition while processing Work()
2014-07-21utils:workqueue: introduce Start/StopWork()Ho-Eun Ryu
WorkQueu doesn't start work thread implicitly. you should call Start/StopWork() where you want at
2014-07-21utils:thread,workqueue: add thread and workqueue classHo-Eun Ryu