FifoSharList.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00032
00033
00034 #ifndef __FIFO_SHAR_LIST_INCLUDED_
00035 #define __FIFO_SHAR_LIST_INCLUDED_
00036
00037 #ifdef MIP_HOST_APPLE
00038 #include <applePatch.h>
00039 #endif
00040
00041 #include <Time.h>
00042 #include <SharedListener.h>
00043 #include <FifoListen.h>
00044
00045
00046 using namespace std;
00047
00049
00050
00051 namespace MipBaselib{
00052
00056 class FifoSharList : public SharedListener {
00057 static bool _instanceFlag;
00058 static FifoSharList *_singleInst;
00059
00060 FifoListen* _fifoListen;
00061
00062 FifoSharList();
00063
00064 void _receive(string& message, string& address);
00065
00066 template <class T> friend void* sharedListenerThread(void* p);
00067
00068 public:
00069
00070 static string getFifoName(int id);
00071
00073 ~FifoSharList();
00074
00076 static FifoSharList* getInstance();
00077
00078 };
00079
00080
00081 };
00082
00083
00084 #endif
00085
00086
00087
00088
00089
00090