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_osx.cc | |
| parent | 81137ff8b9ea1ac55f973df11d55bcae56c1ee02 (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.cc | 3 |
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); |
