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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user