summaryrefslogtreecommitdiff
path: root/src/lib/cross_osx.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-08 23:46:21 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-10 21:13:04 +0200
commitc39eb25116392813e064c963a9bce014e92805b3 (patch)
treee7cf32c442018aa9611dd270d58f95471da57ef7 /src/lib/cross_osx.cc
parent81137ff8b9ea1ac55f973df11d55bcae56c1ee02 (diff)
Allow Waker to keep different things awake for different reasons.
Diffstat (limited to 'src/lib/cross_osx.cc')
-rw-r--r--src/lib/cross_osx.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc
index 069b8409a..cda6a643f 100644
--- a/src/lib/cross_osx.cc
+++ b/src/lib/cross_osx.cc
@@ -155,7 +155,8 @@ Waker::nudge()
}
-Waker::Waker()
+Waker::Waker(Reason reason)
+ : _reason(reason)
{
boost::mutex::scoped_lock lm(_mutex);
IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn, CFSTR("Encoding DCP"), &_assertion_id);