diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-28 11:24:53 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-28 11:24:53 +0000 |
| commit | 11544ebe755cdcf345f53c581c2b1370ccd95e87 (patch) | |
| tree | b54ffd941feb40e005b78035e7abab54dd52cf7d /src/lib/cross.cc | |
| parent | 4f8dd4d3a10b00a11541d2843325760c893a6489 (diff) | |
Try to prevent windows machines going to sleep during encodes.
Diffstat (limited to 'src/lib/cross.cc')
| -rw-r--r-- | src/lib/cross.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 57b3f93b2..9f7a76124 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -298,3 +298,11 @@ dcpomatic_fseek (FILE* stream, int64_t offset, int whence) return fseek (stream, offset, whence); #endif } + +void +kick () +{ +#ifdef DCPOMATIC_WINDOWS + SetThreadExecutionState (ES_CONTINUOUS); +#endif +} |
