From b07c28b90b2d2793be2b8878d813b607f3eebbb7 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 13 Jul 2009 21:59:37 -0700 Subject: add a ctor to Mutex to specify the type, which can be shared. This is used by sf and af an soon will allow some optimization in the kernel for non shared mutexes --- include/private/ui/SharedState.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/private') diff --git a/include/private/ui/SharedState.h b/include/private/ui/SharedState.h index 3bc7979..c9f6b5e 100644 --- a/include/private/ui/SharedState.h +++ b/include/private/ui/SharedState.h @@ -98,6 +98,8 @@ struct layer_cblk_t // (128 bytes) struct per_client_cblk_t // 4KB max { + per_client_cblk_t() : lock(Mutex::SHARED) { } + Mutex lock; Condition cv; layer_cblk_t layers[NUM_LAYERS_MAX] __attribute__((aligned(32))); -- cgit v1.1