mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-01 17:54:16 +03:00
Convert all tsd variables to reside in a single tsd structure.
This commit is contained in:
parent
42f5955938
commit
5460aa6f66
22 changed files with 1027 additions and 935 deletions
|
|
@ -16,11 +16,11 @@ data_cleanup(void *arg)
|
|||
data_cleanup_executed = true;
|
||||
}
|
||||
|
||||
malloc_tsd_protos(, data, data_t)
|
||||
malloc_tsd_externs(data, data_t)
|
||||
malloc_tsd_protos(, data_, data_t)
|
||||
malloc_tsd_externs(data_, data_t)
|
||||
#define DATA_INIT 0x12345678
|
||||
malloc_tsd_data(, data, data_t, DATA_INIT)
|
||||
malloc_tsd_funcs(, data, data_t, DATA_INIT, data_cleanup)
|
||||
malloc_tsd_data(, data_, data_t, DATA_INIT)
|
||||
malloc_tsd_funcs(, data_, data_t, DATA_INIT, data_cleanup)
|
||||
|
||||
static void *
|
||||
thd_start(void *arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue