mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: add -Wthread-analysis and annotate (part 1/2) (#3502)
* enable -Wthread-analysis * add missing annotations * small fixes --------- Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
238bf3ee85
commit
839b1be82d
19 changed files with 163 additions and 147 deletions
|
@ -362,13 +362,13 @@ class UniquePicksGenerator : public PicksGenerator {
|
|||
};
|
||||
|
||||
// Helper class used to guarantee atomicity between serialization of buckets
|
||||
class ThreadLocalMutex {
|
||||
class ABSL_LOCKABLE ThreadLocalMutex {
|
||||
public:
|
||||
ThreadLocalMutex();
|
||||
~ThreadLocalMutex();
|
||||
|
||||
void lock();
|
||||
void unlock();
|
||||
void lock() ABSL_EXCLUSIVE_LOCK_FUNCTION();
|
||||
void unlock() ABSL_UNLOCK_FUNCTION();
|
||||
|
||||
private:
|
||||
EngineShard* shard_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue