Searched refs:sharded_mutex (Results 1 – 4 of 4) sorted by relevance
15 struct sharded_mutex { struct21 struct sharded_mutex *sharded_mutex__new(size_t num_shards); argument22 void sharded_mutex__delete(struct sharded_mutex *sm);24 static inline struct mutex *sharded_mutex__get_mutex(struct sharded_mutex *sm, size_t hash) in sharded_mutex__get_mutex()
6 struct sharded_mutex *sharded_mutex__new(size_t num_shards) in sharded_mutex__new()8 struct sharded_mutex *result; in sharded_mutex__new()27 void sharded_mutex__delete(struct sharded_mutex *sm) in sharded_mutex__delete()
604 static struct sharded_mutex *sharded_mutex; variable609 sharded_mutex = sharded_mutex__new(cpu__max_present_cpu().cpu); in annotation__init_sharded_mutex()622 if (!sharded_mutex) in annotation__get_mutex()625 return sharded_mutex__get_mutex(sharded_mutex, annotation__hash(notes)); in annotation__get_mutex()
171 perf-util-y += sharded_mutex.o