diff options
author | Mathias Agopian <mathias@google.com> | 2009-04-20 19:39:12 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-04-24 16:22:36 -0700 |
commit | 6ead5d9f140529edfb744584fa5427b84b4dc13a (patch) | |
tree | 9685b259637326b603a88f1ff9cf8bb125ae9e1d /include/private | |
parent | 6cf0db228ca275dfcda57d79c55e5fa306809632 (diff) | |
download | frameworks_base-6ead5d9f140529edfb744584fa5427b84b4dc13a.zip frameworks_base-6ead5d9f140529edfb744584fa5427b84b4dc13a.tar.gz frameworks_base-6ead5d9f140529edfb744584fa5427b84b4dc13a.tar.bz2 |
a brand new MessageQueue for SurfaceFlinger.
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/ui/SurfaceFlingerSynchro.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/private/ui/SurfaceFlingerSynchro.h b/include/private/ui/SurfaceFlingerSynchro.h index ff91b61..7386d33 100644 --- a/include/private/ui/SurfaceFlingerSynchro.h +++ b/include/private/ui/SurfaceFlingerSynchro.h @@ -21,7 +21,6 @@ #include <stdint.h> #include <sys/types.h> #include <utils/Errors.h> -#include <utils/threads.h> #include <ui/ISurfaceComposer.h> namespace android { @@ -31,7 +30,6 @@ class SurfaceFlinger; class SurfaceFlingerSynchro { public: - // client constructor SurfaceFlingerSynchro(const sp<ISurfaceComposer>& flinger); ~SurfaceFlingerSynchro(); @@ -40,34 +38,8 @@ public: status_t signal(); private: - class Barrier { - public: - Barrier(); - ~Barrier(); - void open(); - void close(); - void waitAndClose(); - status_t waitAndClose(nsecs_t timeout); - private: - enum { OPENED, CLOSED }; - mutable Mutex lock; - mutable Condition cv; - volatile int state; - }; - friend class SurfaceFlinger; - - // server constructor - SurfaceFlingerSynchro(); - - void open(); - - // wait until there is some work to do - status_t wait(); - status_t wait(nsecs_t timeout); - sp<ISurfaceComposer> mSurfaceComposer; - Barrier mBarrier; }; }; // namespace android |