w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
ReventLoop.ipp
Go to the documentation of this file.
1// $Id: ReventLoop.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-07 1078 1.2.1 use std::shared_ptr instead of boost
8// 2015-04-04 662 1.2 BUGFIX: fix race in Stop(), add UnStop,StopPending
9// 2013-05-01 513 1.1.1 fTraceLevel now uint32_t
10// 2013-02-22 491 1.1 use new RlogFile/RlogMsg interfaces
11// 2013-01-11 473 1.0 Initial version
12// ---------------------------------------------------------------------------
13
18// all method definitions in namespace Retro
19namespace Retro {
20
21//------------------------------------------+-----------------------------------
23
24inline void ReventLoop::Stop()
25{
26 fStopPending = true;
27 return;
28}
29
30//------------------------------------------+-----------------------------------
32
33inline void ReventLoop::UnStop()
34{
35 fStopPending = false;
36 return;
37}
38
39//------------------------------------------+-----------------------------------
41
43{
44 return fStopPending;
45}
46
47//------------------------------------------+-----------------------------------
49
50inline void ReventLoop::SetLogFile(const std::shared_ptr<RlogFile>& splog)
51{
52 fspLog = splog;
53 return;
54}
55
56//------------------------------------------+-----------------------------------
58
59inline void ReventLoop::SetTraceLevel(uint32_t level)
60{
61 fTraceLevel = level;
62 return;
63}
64
65//------------------------------------------+-----------------------------------
67
68inline uint32_t ReventLoop::TraceLevel() const
69{
70 return fTraceLevel;
71}
72
73} // end namespace Retro
74
std::shared_ptr< RlogFile > fspLog
log file ptr
Definition: ReventLoop.hpp:89
void SetLogFile(const std::shared_ptr< RlogFile > &splog)
FIXME_docs.
Definition: ReventLoop.ipp:50
void Stop()
FIXME_docs.
Definition: ReventLoop.ipp:24
uint32_t TraceLevel() const
FIXME_docs.
Definition: ReventLoop.ipp:68
void UnStop()
FIXME_docs.
Definition: ReventLoop.ipp:33
void SetTraceLevel(uint32_t level)
FIXME_docs.
Definition: ReventLoop.ipp:59
bool StopPending()
FIXME_docs.
Definition: ReventLoop.ipp:42
uint32_t fTraceLevel
trace level
Definition: ReventLoop.hpp:88
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47