kernel: Add an AssertLocked() to Team.

The mutex member is private, so this is necessary for other methods
to assert the team mutex is locked.
This commit is contained in:
Augustin Cavalier
2026-03-04 21:38:43 -05:00
parent f1425c9e61
commit e6569ec320
+2
View File
@@ -531,6 +531,8 @@ public:
{ return mutex_trylock(&fLock) == B_OK; }
void Unlock()
{ mutex_unlock(&fLock); }
void AssertLocked()
{ ASSERT_LOCKED_MUTEX(&fLock); }
void UnlockAndReleaseReference()
{ Unlock(); ReleaseReference(); }