[Cbe-oss-dev] [PATCH 06/10]MARS: Add support for shared mars context

Kazunori Asayama asayama at sm.sony.co.jp
Fri Oct 3 15:41:53 EST 2008


Yuji Mano wrote:
> This changes the mars_context_create API to allow an added flag parameter to
> specify whether to create a new instance of a non-shared MARS context or to
> return the instance of the globally shared MARS context. Each MARS context will
> keep an internal reference count to know when the instance needs to be freed
> when mars_context_destroy is called on it.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

Acked-by: Kazunori Asayama <asayama at sm.sony.co.jp>

This patch causes deadlocks because the functions return without
releasing locks in some cases. But I can expect that will be fixed by
the following patch 8.

> 
> ---
>  include/host/mars/mars_context.h |    5 +-
>  src/host/lib/mars_context.c      |   86 +++++++++++++++++++++++++++++++++------
>  2 files changed, 78 insertions(+), 13 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list