mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
futex: style
This commit is contained in:
@@ -26,7 +26,7 @@ typedef struct {
|
|||||||
static futex_bucket_t buckets[BUCKET_COUNT];
|
static futex_bucket_t buckets[BUCKET_COUNT];
|
||||||
|
|
||||||
static futex_bucket_t *get_futex_bucket(uintptr_t key) {
|
static futex_bucket_t *get_futex_bucket(uintptr_t key) {
|
||||||
return &buckets[(key / 16) % 256]; // TODO proper hash
|
return &buckets[(key / 16) % BUCKET_COUNT]; // TODO proper hash
|
||||||
}
|
}
|
||||||
|
|
||||||
// expects bucket mutex held
|
// expects bucket mutex held
|
||||||
|
|||||||
Reference in New Issue
Block a user