diff options
Diffstat (limited to 'src/lib/event_history.cc')
| -rw-r--r-- | src/lib/event_history.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/event_history.cc b/src/lib/event_history.cc index f68a6c9b9..b39a23d01 100644 --- a/src/lib/event_history.cc +++ b/src/lib/event_history.cc @@ -60,4 +60,15 @@ EventHistory::event() if (int(_history.size()) > _size) { _history.pop_back(); } + + ++_events; } + + +int +EventHistory::events() const +{ + boost::mutex::scoped_lock lock(_mutex); + return _events; +} + |
