Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
Utilities
interface
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
:
19
ForkParams
():
slotId
(-1),
restart
(0),
isMaster
(-1){}
20
int
slotId
;
21
bool
restart
;
22
int
isMaster
;
23
};
24
class
ForkInfoObj
{
25
public
:
26
ForkInfoObj
()
27
{
28
control_sem_
=
new
sem_t;
29
sem_init(
control_sem_
,0,0);
30
stopCondition
=0;
31
receivedStop_
=
false
;
32
}
33
~ForkInfoObj
()
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
*);
41
ForkParams
forkParams
;
42
unsigned
int
stopCondition
;
43
bool
receivedStop_
;
44
sem_t *
control_sem_
;
45
pthread_mutex_t *
mst_lock_
;
46
void
*
fuAddr
;
47
};
48
}
49
50
}
51
#endif
evf::moduleweb::ForkParams::ForkParams
ForkParams()
Definition:
ModuleWeb.h:19
evf::moduleweb::ForkInfoObj::fuAddr
void * fuAddr
Definition:
ModuleWeb.h:46
evf::moduleweb::ForkInfoObj
Definition:
ModuleWeb.h:24
evf::moduleweb::ForkInfoObj::forkParams
ForkParams forkParams
Definition:
ModuleWeb.h:41
evf::moduleweb::ForkInfoObj::lock
void lock()
Definition:
ModuleWeb.h:38
evf::moduleweb::ForkParams::slotId
int slotId
Definition:
ModuleWeb.h:20
evf::moduleweb::ForkInfoObj::control_sem_
sem_t * control_sem_
Definition:
ModuleWeb.h:44
evf::moduleweb::ForkInfoObj::forkHandler
void(* forkHandler)(void *)
Definition:
ModuleWeb.h:40
evf::moduleweb::ForkInfoObj::stopCondition
unsigned int stopCondition
Definition:
ModuleWeb.h:42
evf::moduleweb::ForkParams::restart
bool restart
Definition:
ModuleWeb.h:21
evf::moduleweb::ForkParams
Definition:
ModuleWeb.h:17
evf::moduleweb::ForkInfoObj::mst_lock_
pthread_mutex_t * mst_lock_
Definition:
ModuleWeb.h:45
evf::moduleweb::ForkInfoObj::~ForkInfoObj
~ForkInfoObj()
Definition:
ModuleWeb.h:33
evf::moduleweb::ForkInfoObj::ForkInfoObj
ForkInfoObj()
Definition:
ModuleWeb.h:26
evf::moduleweb::ForkParams::isMaster
int isMaster
Definition:
ModuleWeb.h:22
evf::moduleweb::ForkInfoObj::unlock
void unlock()
Definition:
ModuleWeb.h:39
evf::moduleweb::ForkInfoObj::receivedStop_
bool receivedStop_
Definition:
ModuleWeb.h:43
Generated for CMSSW Reference Manual by
1.8.5