53 #include "IProcessListener.h"
55 #include "system/compat/SystemCompat.h"
56 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
58 #include "system/thread/Thread.h"
59 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
67 #include <sys/types.h>
85 static const short PST_NULL = 0;
86 static const short PST_RUNNING = 1;
87 static const short PST_SDONE = 2;
88 static const short PST_UDONE = 3;
90 static const int SHM_SIZE = 65536;
98 posix_spawnattr_t spawnAttr;
99 posix_spawn_file_actions_t fileActions;
117 pthread_mutex_t comMutex;
118 pthread_cond_t comCond;
131 void setProcessInfo(
string processUri,
string objName);
138 bool sendMsg(
string msg);
139 static bool sendMsg(FILE* fd,
string msg);
140 virtual void messageReceived(
string msg);
141 static string receiveMsg(FILE* fd);
142 static FILE* openW(
string wName);
143 static FILE* openR(
string rName);
150 void spawnedReady(
bool ready);
151 static void* createFiles(
void* ptr);
152 static void* detachWait(
void* ptr);
153 static void* detachReceive(
void* ptr);
163 #endif //__Process_h__
Definition: IProcessListener.h:64