summaryrefslogtreecommitdiff
path: root/src/lib/cross.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cross.h')
-rw-r--r--src/lib/cross.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/cross.h b/src/lib/cross.h
index 4773e2cb9..c304b6dfb 100644
--- a/src/lib/cross.h
+++ b/src/lib/cross.h
@@ -81,13 +81,19 @@ namespace dcpomatic {
class Waker
{
public:
- Waker();
+ enum class Reason {
+ PLAYING,
+ ENCODING
+ };
+
+ Waker(Reason reason);
~Waker();
void nudge();
private:
boost::mutex _mutex;
+ Reason _reason;
#ifdef DCPOMATIC_OSX
IOPMAssertionID _assertion_id;
#endif