kernel/lock: Assert that a write lock isn't held in switch_from_read_lock.
This commit is contained in:
@@ -978,6 +978,7 @@ mutex_switch_from_read_lock(rw_lock* from, mutex* to)
|
||||
"for locks %p, %p", from, to);
|
||||
}
|
||||
#endif
|
||||
ASSERT(from->holder != thread_get_current_thread_id());
|
||||
|
||||
InterruptsSpinLocker locker(to->lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user