diff options
author | Mathias Agopian <mathias@google.com> | 2009-07-13 21:59:37 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-07-13 22:06:36 -0700 |
commit | fb4f266a1b9f6a20e256d192a940ae4ccc510fad (patch) | |
tree | f78e179753657d3ee9f0132c7433e3099162e9f2 /include/private | |
parent | 3a5351e4437fc2c220bc68a431bd4a1a00a653fa (diff) | |
download | frameworks_base-fb4f266a1b9f6a20e256d192a940ae4ccc510fad.zip frameworks_base-fb4f266a1b9f6a20e256d192a940ae4ccc510fad.tar.gz frameworks_base-fb4f266a1b9f6a20e256d192a940ae4ccc510fad.tar.bz2 |
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
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/ui/SharedState.h | 2 |
1 files changed, 2 insertions, 0 deletions
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))); |