summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-04-20 19:39:12 -0700
committerMathias Agopian <mathias@google.com>2009-04-24 16:22:36 -0700
commit4fde27f0b89b3df5e280b648dd6c7968ee864916 (patch)
tree5b434dc7de5bd66d36e54d69df486dc758e34f92 /include
parenta4495e15248ff9a7024fd2e0a528b3aa8ca46155 (diff)
downloadframeworks_av-4fde27f0b89b3df5e280b648dd6c7968ee864916.zip
frameworks_av-4fde27f0b89b3df5e280b648dd6c7968ee864916.tar.gz
frameworks_av-4fde27f0b89b3df5e280b648dd6c7968ee864916.tar.bz2
a brand new MessageQueue for SurfaceFlinger.
Diffstat (limited to 'include')
-rw-r--r--include/private/ui/SurfaceFlingerSynchro.h28
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