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()
1304 static struct sharded_mutex *sharded_mutex; variable1309 sharded_mutex = sharded_mutex__new(cpu__max_present_cpu().cpu); in annotation__init_sharded_mutex()1322 if (!sharded_mutex) in annotation__get_mutex()1325 return sharded_mutex__get_mutex(sharded_mutex, annotation__hash(notes)); in annotation__get_mutex()
151 perf-y += sharded_mutex.o