cvd/eventobject.h

00001 #ifndef EVENTOBJECT_H
00002 #define EVENTOBJECT_H
00003 
00004 #include <pthread.h>
00005 #include <cvd/synchronized.h>
00006 
00007 namespace CVD {
00009     class EventObject : public Synchronized
00010     {
00011     public:
00013     EventObject();
00014     virtual ~EventObject();
00016     void trigger();
00018     void triggerAll();
00019 
00021     void wait();
00023     bool wait(unsigned int milli);
00024     protected:
00025     pthread_cond_t myCondVar;
00026     };
00027     
00028 }
00029 #endif

Generated on Wed Feb 18 10:23:00 2009 for CVD by  doxygen 1.5.3