summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/delegatelist/delegatelist.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-03-02 02:00:41 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-03-08 21:38:37 +0000
commitbe9df8bfa22cf5a7164f4f3deba44cdbd2b8e7cf (patch)
treef4a9153a9613f375f3a7dc15fb274a528a1269ed /vespalib/src/tests/delegatelist/delegatelist.cpp
parent72e9888bcccbc384d2485409ba055633131ed512 (diff)
Implement a default destructor to avoid the automatic inlining of large destructors.
Diffstat (limited to 'vespalib/src/tests/delegatelist/delegatelist.cpp')
-rw-r--r--vespalib/src/tests/delegatelist/delegatelist.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/vespalib/src/tests/delegatelist/delegatelist.cpp b/vespalib/src/tests/delegatelist/delegatelist.cpp
index 2efb08e22df..475d4e24551 100644
--- a/vespalib/src/tests/delegatelist/delegatelist.cpp
+++ b/vespalib/src/tests/delegatelist/delegatelist.cpp
@@ -213,17 +213,21 @@ private:
void doneOp(const Command &cmd);
int perform(int cnt, int start, const CmdList &cmdList);
public:
- Actor(int id, History *hist)
- : _id(id), _hist(hist), _queue(), _cond(), _state(STATE_INIT),
- _waitCnt(0), _opCnt(0), _exit(false) {}
+ Actor(int id, History *hist);
+ ~Actor();
int getOpCnt() const { return _opCnt; }
int getState() const { return _state; }
void doIt(const CmdList &cmdList);
void doIt(const Command &cmd);
void waitState(int state);
- void Run(FastOS_ThreadInterface *, void *);
+ void Run(FastOS_ThreadInterface *, void *) override;
};
+Actor::Actor(int id, History *hist)
+ : _id(id), _hist(hist), _queue(), _cond(), _state(STATE_INIT),
+ _waitCnt(0), _opCnt(0), _exit(false)
+{}
+Actor::~Actor() {}
void
Actor::setState(int state, MonitorGuard &guard) {