projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preserve export video settings in the config (#2259).
[dcpomatic.git]
/
src
/
lib
/
event_history.h
diff --git
a/src/lib/event_history.h
b/src/lib/event_history.h
index 5b0f9a6a3879a876810cacb772a1aa1d08761405..a98447f4246f58aa37d11514a59406e59a3af326 100644
(file)
--- a/
src/lib/event_history.h
+++ b/
src/lib/event_history.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017
-2021
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,15
+18,22
@@
*/
*/
+
+#ifndef DCPOMATIC_EVENT_HISTORY_H
+#define DCPOMATIC_EVENT_HISTORY_H
+
+
#include <boost/thread/mutex.hpp>
#include <boost/thread/mutex.hpp>
+#include <boost/optional.hpp>
#include <list>
#include <list>
+
class EventHistory
{
public:
class EventHistory
{
public:
- EventHistory (int size);
+
explicit
EventHistory (int size);
-
float
rate () const;
+
boost::optional<float>
rate () const;
void event ();
private:
void event ();
private:
@@
-39,3
+46,6
@@
private:
/** Number of events that we should keep history for */
int const _size;
};
/** Number of events that we should keep history for */
int const _size;
};
+
+
+#endif