BOSS
7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
DistBoss/DistBossServer/DistBossServer-00-00-04/DistBossServer/ReaderRpc.h
Go to the documentation of this file.
1
#ifndef DISTBOSS_READER_RPC_H
2
#define DISTBOSS_READER_RPC_H
3
4
#include "DistBossUtil/PthrReaderBufPool.h"
5
#include "DistBossServer/RpcInterface.h"
6
#include "dis.hxx"
7
#include <string>
8
#include <map>
9
#include <vector>
10
#include <semaphore.h>
11
12
template
<
class
Reader>
13
class
ReaderRpc
:
virtual
public
DimRpc,
virtual
public
RpcInterface
14
{
15
public :
16
17
ReaderRpc
(
const
std::string& svrName,
const
std::vector<std::string>& fnames,
int
evtMax);
18
virtual
~ReaderRpc
();
19
20
int
wait_to_end
();
21
22
23
private
:
24
25
void
rpcHandler();
26
27
ReaderRpc
();
//stop default
28
29
30
private
:
31
32
int
m_evtDone;
33
int
m_evtMax;
34
35
int
m_stopFlag;
36
37
int
m_inCode;
38
int
m_outCode;
39
const
uint32_t* m_pEvt;
40
41
PthrReaderBufPool<Reader>
* m_freader;
42
43
sem_t m_sem;
44
45
std::string m_svrName;
46
47
std::map<int, AutoEnlargeBuffer*> m_evtBak;
48
};
49
50
#include "DistBossServer/template/ReaderRpc.cc"
51
52
#endif
private
#define private
Definition:
Event/RootEventData/RootEventData-00-03-81/RootEventData/RootEventData_rootcint.cxx:11
PthrReaderBufPool
Definition:
DistBoss/DistBossUtil/DistBossUtil-00-00-04/DistBossUtil/PthrReaderBufPool.h:14
ReaderRpc
Definition:
DistBoss/DistBossServer/DistBossServer-00-00-04/DistBossServer/ReaderRpc.h:14
ReaderRpc::~ReaderRpc
virtual ~ReaderRpc()
Definition:
DistBoss/DistBossServer/DistBossServer-00-00-04/DistBossServer/template/ReaderRpc.cc:22
ReaderRpc::wait_to_end
int wait_to_end()
Definition:
DistBoss/DistBossServer/DistBossServer-00-00-04/DistBossServer/template/ReaderRpc.cc:36
RpcInterface
Definition:
DistBoss/DistBossServer/DistBossServer-00-00-04/DistBossServer/RpcInterface.h:5
source
DistBoss
DistBossServer
DistBossServer-00-00-04
DistBossServer
ReaderRpc.h
Generated by
1.9.6