[kernel][mutex] Add a default timeout to the C++ wrapper mutex
This commit is contained in:
@@ -63,7 +63,7 @@ public:
|
||||
constexpr Mutex() = default;
|
||||
~Mutex() { mutex_destroy(&lock_); }
|
||||
|
||||
status_t acquire(lk_time_t timeout) { return mutex_acquire_timeout(&lock_, timeout); }
|
||||
status_t acquire(lk_time_t timeout = INFINITE_TIME) { return mutex_acquire_timeout(&lock_, timeout); }
|
||||
status_t release() { return mutex_release(&lock_); }
|
||||
bool is_held() { return is_mutex_held(&lock_); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user