sharded_mutex
static struct sharded_mutex *sharded_mutex;
sharded_mutex = sharded_mutex__new(cpu__max_present_cpu().cpu);
if (!sharded_mutex)
return sharded_mutex__get_mutex(sharded_mutex, annotation__hash(notes));
void sharded_mutex__delete(struct sharded_mutex *sm)
struct sharded_mutex *sharded_mutex__new(size_t num_shards)
struct sharded_mutex *result;
struct sharded_mutex *sharded_mutex__new(size_t num_shards);
void sharded_mutex__delete(struct sharded_mutex *sm);
static inline struct mutex *sharded_mutex__get_mutex(struct sharded_mutex *sm, size_t hash)