X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcross.h;h=584fa2b426a7f2fab9460205edbd47cd2395bf8f;hb=579d18cb7770efe2da03afaf6a33faaf624119e3;hp=06e198e99ad7a371e899dbe3023a17b2314afd64;hpb=3526252ff2fd80a459c72ab1c55ea5a6ee61aa2f;p=dcpomatic.git diff --git a/src/lib/cross.h b/src/lib/cross.h index 06e198e99..584fa2b42 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -29,6 +29,7 @@ #include #endif #include +#include #ifdef DCPOMATIC_WINDOWS #define WEXITSTATUS(w) (w) @@ -37,7 +38,8 @@ class Log; struct AVIOContext; -void dcpomatic_sleep (int); +void dcpomatic_sleep_seconds (int); +void dcpomatic_sleep_milliseconds (int); extern std::string cpu_info (); extern void run_ffprobe (boost::filesystem::path, boost::filesystem::path); extern std::list > mount_info (); @@ -57,6 +59,7 @@ extern uint64_t thread_id (); extern int avio_open_boost (AVIOContext** s, boost::filesystem::path file, int flags); extern boost::filesystem::path home_directory (); extern std::string command_and_read (std::string cmd); +extern bool running_32_on_64 (); /** @class Waker * @brief A class which tries to keep the computer awake on various operating systems. @@ -73,6 +76,7 @@ public: void nudge (); private: + boost::mutex _mutex; #ifdef DCPOMATIC_OSX IOPMAssertionID _assertion_id; #endif