Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: Ia33c9e1c3e21e9f68c867a1b5f8616c0afcd056e
|
|
|
|
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
|
|
|
|
|
|
|
|
this function discards qeueud works in works list to cancel queued job;
|
|
it had a race condition against list manipulation while processing Work()
this patch prevents race condition while processing Work()
|
|
WorkQueu doesn't start work thread implicitly. you should call
Start/StopWork() where you want at
|
|
|