[Cbe-oss-dev] [PATCH 7/10] MARS: workload queue api fix

Kazunori Asayama asayama at sm.sony.co.jp
Fri Aug 29 14:37:48 EST 2008


Yuji Mano wrote:
> workload_queue_schedule_begin()
>  - mutex lock
>  - changes state to MARS_WORKLOAD_STATE_SCHEDULING
>  - mutex unlock
>  - returns pointer to the workload context for workload specific initialization
> 
> workload_queue_schedule_end()
>  - mutex lock
>  - sets necessary bits in workload queue
>  - changes state to MARS_WORKLOAD_STATE_READY
>  - mutex unlock
> 
> Is this preferable to the current callback solution and why?

I prefer this one because it is simpler and more flexible for callers
than the callback solution.

-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list