Make terminate_threads() less likely to leave _threads containing invalid pointers.
[dcpomatic.git] / src / lib / event_history.h
index 5b0f9a6a3879a876810cacb772a1aa1d08761405..e194f633335f0c3e0850a4db3c101d54aadabfef 100644 (file)
 
 */
 
+#ifndef DCPOMATIC_EVENT_HISTORY_H
+#define DCPOMATIC_EVENT_HISTORY_H
+
 #include <boost/thread/mutex.hpp>
 #include <list>
 
 class EventHistory
 {
 public:
-       EventHistory (int size);
+       explicit EventHistory (int size);
 
        float rate () const;
        void event ();
@@ -39,3 +42,5 @@ private:
        /** Number of events that we should keep history for */
        int const _size;
 };
+
+#endif