23#ifndef SUSPENDINHIBITOR_H 
   24#define SUSPENDINHIBITOR_H 
   28#include <IOKit/pwr_mgt/IOPMLib.h> 
   88        mutable std::mutex m_mutex;
 
   91        unsigned int m_cookie;
 
   92#elif defined(__APPLE__) 
   93        IOPMAssertionID m_cookie;
 
 
bool isInhibiting() const noexcept
Gets whether or not the system is being inhibited from suspending.
 
bool inhibit() noexcept
Inhibits the system from suspending.
 
SuspendInhibitor() noexcept
Constructs a SuspendInhibitor.
 
bool uninhibit() noexcept
Uninhibits the system from suspending.
 
Definition credentials.h:31