diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-08 23:46:21 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:13:04 +0200 |
| commit | c39eb25116392813e064c963a9bce014e92805b3 (patch) | |
| tree | e7cf32c442018aa9611dd270d58f95471da57ef7 /src/lib/cross.h | |
| parent | 81137ff8b9ea1ac55f973df11d55bcae56c1ee02 (diff) | |
Allow Waker to keep different things awake for different reasons.
Diffstat (limited to 'src/lib/cross.h')
| -rw-r--r-- | src/lib/cross.h | 8 |
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 |
