int sqlite3_mutex_notheld( sqlite3_mutex* mutex );
mutex
A mutual exclusion lock. If a NULL value is passed, the function should return true (nonzero).
A nonzero value if the given mutex is currently not held, or a zero value if the mutex is held.