Back to index

lightning-sunbird  0.9+nobinonly
GUSIPThread.h
Go to the documentation of this file.
00001 // <GUSIPThread.h>=                                                        
00002 #ifndef _GUSIPThread_
00003 #define _GUSIPThread_
00004 
00005 #include "GUSISpecific.h"
00006 #include "GUSIContext.h"
00007 #include "GUSIContextQueue.h"
00008 
00009 #include <pthread.h>
00010 
00011 // <Implementation of Pthread data types>=                                 
00012 struct GUSIPThread : public GUSIContext {
00013 private:
00014        GUSIPThread() : GUSIContext(0) {} // Never called
00015 };
00016 // <Implementation of Pthread data types>=                                 
00017 struct GUSIPThreadKey : public GUSISpecific {
00018        GUSIPThreadKey(GUSIPThreadKeyDestructor destructor) : GUSISpecific(destructor) {}
00019 };
00020 // <Implementation of Pthread data types>=                                 
00021 struct GUSIPThreadMutex : public GUSIContextQueue {
00022        bool   fPolling;
00023 
00024        GUSIPThreadMutex() : fPolling(false) {}   
00025 };
00026 // <Implementation of Pthread data types>=                                 
00027 struct GUSIPThreadCond : public GUSIContextQueue {
00028 };
00029 
00030 #endif /* _GUSIPThread_ */