CMS 3D CMS Logo

ModuleWeb.h
Go to the documentation of this file.
1 #ifndef EVF_MODULEWEB_H
2 #define EVF_MODULEWEB_H
3 
4 //#include "toolbox/lang/Class.h"
5 //#include "xdata/InfoSpace.h"
6 #include <string>
7 #include <pthread.h>
8 #include <semaphore.h>
9 
10 
11 
12  namespace evf
13  {
14 
15 
16  namespace moduleweb {
17  class ForkParams {
18  public:
20  int slotId;
21  bool restart;
22  int isMaster;
23  };
24  class ForkInfoObj {
25  public:
27  {
28  control_sem_ = new sem_t;
29  sem_init(control_sem_,0,0);
30  stopCondition=0;
31  receivedStop_=false;
32  }
34  {
35  sem_destroy(control_sem_);
36  delete control_sem_;
37  }
38  void lock() {if (mst_lock_) pthread_mutex_lock(mst_lock_);}
39  void unlock() {if (mst_lock_) pthread_mutex_unlock(mst_lock_);}
40  void (*forkHandler) (void *);
42  unsigned int stopCondition;
44  sem_t *control_sem_;
45  pthread_mutex_t * mst_lock_;
46  void * fuAddr;
47  };
48  }
49 
50 }
51 #endif
Definition: fillJson.h:27
unsigned int stopCondition
Definition: ModuleWeb.h:42
pthread_mutex_t * mst_lock_
Definition: ModuleWeb.h:45