JeVois Smart Embedded Machine Vision Toolkit
Acquire a lock object on a std::timed_mutex, or LFATAL after 1 second of waiting.
Use this as you would use lock_guard (but make sure your mutex is std::timed_mutex). It will throw in case of deadlock, useful for debugging. Users would typically use the JEVOIS_TIMED_LOCK(mtx) macro rather than this class directly.
|timed_lock_guard (std::timed_mutex &mtx, char const *file, char const *func)|
|Constructor, locks the mutex or throw if it cannot be locked before timeout. More...|
|Destructor, unlocks the mutex. More...|