BLooperList: Use rw_lock.

Improves efficiency, as some functions can use a read lock
instead of a write lock.

Eliminates another statically-created BLocker.
This commit is contained in:
Augustin Cavalier
2026-03-02 20:17:51 -05:00
parent 5eef2f1d00
commit b6441edfac
4 changed files with 16 additions and 30 deletions
+2 -3
View File
@@ -11,9 +11,8 @@
#include <vector>
#include <Locker.h>
#include <OS.h>
#include <SupportDefs.h>
#include <locks.h>
class BList;
@@ -78,7 +77,7 @@ private:
void AssertLocked();
private:
BLocker fLock;
rw_lock fLock;
std::vector<LooperData> fData;
};