BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
ReaderRpc.h
Go to the documentation of this file.
1#ifndef DISTBOSS_READER_RPC_H
2#define DISTBOSS_READER_RPC_H
3
6#include "dis.hxx"
7#include <string>
8#include <map>
9#include <vector>
10#include <semaphore.h>
11
12template<class Reader>
13class 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
42
43 sem_t m_sem;
44
45 std::string m_svrName;
46
47 std::map<int, AutoEnlargeBuffer*> m_evtBak;
48};
49
51
52#endif
#define private
virtual ~ReaderRpc()
Definition: ReaderRpc.cc:22
int wait_to_end()
Definition: ReaderRpc.cc:36