Make terminate_threads() less likely to leave _threads containing invalid pointers.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 3d792467b465d4a433b5425942018b0e7b06d78b..a09dd93e9c179f515b08bfd093f8aaada36f2937 100644 (file)
@@ -113,6 +113,10 @@ public:
                return *this;
        }
 
+       Time<S, O> operator/ (int o) const {
+               return Time<S, O> (_t / o);
+       }
+
        /** Round up to the nearest sampling interval
         *  at some sampling rate.
         *  @param r Sampling rate.
@@ -221,12 +225,13 @@ public:
                return Time<S, O> (INT64_MAX);
        }
 
+       static const int HZ = 96000;
+
 private:
        friend struct dcpomatic_time_ceil_test;
        friend struct dcpomatic_time_floor_test;
 
        Type _t;
-       static const int HZ = 96000;
 };
 
 class ContentTimeDifferentiator {};