Skip to content

Class jac::TimeoutLock

ClassList > jac > TimeoutLock

Public Functions

Type Name
TimeoutLock (std::chrono::milliseconds duration, std::function< void()> callback)
TimeoutLock (const TimeoutLock &) = delete
TimeoutLock (TimeoutLock &&) = delete
void forceUnlock ()
void init ()
bool lock (int who)
TimeoutLock & operator= (const TimeoutLock &) = delete
TimeoutLock & operator= (TimeoutLock &&) = delete
bool ownedBy (int who)
void resetTimeout (int who)
void stopTimeout (int who)
bool unlock (int who)
~TimeoutLock ()

Public Functions Documentation

function TimeoutLock [1/3]

inline jac::TimeoutLock::TimeoutLock (
    std::chrono::milliseconds duration,
    std::function< void()> callback
) 

function TimeoutLock [2/3]

jac::TimeoutLock::TimeoutLock (
    const TimeoutLock &
) = delete

function TimeoutLock [3/3]

jac::TimeoutLock::TimeoutLock (
    TimeoutLock &&
) = delete

function forceUnlock

inline void jac::TimeoutLock::forceUnlock () 

function init

inline void jac::TimeoutLock::init () 

function lock

inline bool jac::TimeoutLock::lock (
    int who
) 

function operator=

TimeoutLock & jac::TimeoutLock::operator= (
    const TimeoutLock &
) = delete

function operator=

TimeoutLock & jac::TimeoutLock::operator= (
    TimeoutLock &&
) = delete

function ownedBy

inline bool jac::TimeoutLock::ownedBy (
    int who
) 

function resetTimeout

inline void jac::TimeoutLock::resetTimeout (
    int who
) 

function stopTimeout

inline void jac::TimeoutLock::stopTimeout (
    int who
) 

function unlock

inline bool jac::TimeoutLock::unlock (
    int who
) 

function ~TimeoutLock

inline jac::TimeoutLock::~TimeoutLock () 


The documentation for this class was generated from the following file src/jac/device/util/lock.h