ConditionalVariable.h

Go to the documentation of this file.
00001 // Copyright CERN 2012 - Developed in collaboration with GSI
00002 
00003 #ifndef CONDITIONAL_VARIABLE_H_
00004 #define CONDITIONAL_VARIABLE_H_
00005 
00006 #include <pthread.h>
00007 
00008 namespace fesa
00009 {
00010 
00011 class Mutex;
00012 
00021 class ConditionalVariable
00022 {
00023   public:
00024 
00029     ConditionalVariable();
00030 
00034     virtual ~ConditionalVariable();
00035 
00041     void signal();
00042 
00048     void wait(Mutex& mutex);
00049 
00050   private:
00051 
00056     pthread_cond_t condition_;
00057 
00058 };
00059 
00060 } // fesa
00061 
00062 #endif // CONDITIONAL_VARIABLE_H_

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1