Name

mutex_is_locked — is the mutex locked

Synopsis

int mutex_is_locked (struct mutex * lock);
 

Arguments

struct mutex * lock

the mutex to be queried

Description

Returns 1 if the mutex is locked, 0 if unlocked.