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 | b07c28b90b2d2793be2b8878d813b607f3eebbb7 (patch) | |
tree | 9b057ba339d33e8e13d0f0b7dabc2eca22603340 /include | |
parent | 43d2c03d8ff8c623391a17b10e01a601d55d5b1e (diff) | |
download | frameworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.zip frameworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.tar.gz frameworks_av-b07c28b90b2d2793be2b8878d813b607f3eebbb7.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')
-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))); |