mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-05 18:06:14 +03:00
Make the mutex n_waiting_thds field a C11-style atomic
This commit is contained in:
parent
492a941f49
commit
5dcc13b342
4 changed files with 19 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ struct mutex_prof_data_s {
|
|||
/* Max # of threads waiting for the mutex at the same time. */
|
||||
uint32_t max_n_thds;
|
||||
/* Current # of threads waiting on the lock. Atomic synced. */
|
||||
uint32_t n_waiting_thds;
|
||||
atomic_u32_t n_waiting_thds;
|
||||
|
||||
/*
|
||||
* Data touched on the fast path. These are modified right after we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue