2017-01-11 10:06:31 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_TSD_EXTERNS_H
|
|
|
|
#define JEMALLOC_INTERNAL_TSD_EXTERNS_H
|
|
|
|
|
|
|
|
void *malloc_tsd_malloc(size_t size);
|
|
|
|
void malloc_tsd_dalloc(void *wrapper);
|
|
|
|
void malloc_tsd_cleanup_register(bool (*f)(void));
|
|
|
|
tsd_t *malloc_tsd_boot0(void);
|
|
|
|
void malloc_tsd_boot1(void);
|
|
|
|
#if (!defined(JEMALLOC_MALLOC_THREAD_CLEANUP) && !defined(JEMALLOC_TLS) && \
|
|
|
|
!defined(_WIN32))
|
|
|
|
void *tsd_init_check_recursion(tsd_init_head_t *head,
|
|
|
|
tsd_init_block_t *block);
|
|
|
|
void tsd_init_finish(tsd_init_head_t *head, tsd_init_block_t *block);
|
|
|
|
#endif
|
2017-03-28 12:50:38 +08:00
|
|
|
bool tsd_data_init(void *arg);
|
|
|
|
void tsd_cleanup(void *arg);
|
2017-04-12 14:13:45 +08:00
|
|
|
tsd_t *tsd_fetch_slow(tsd_t *tsd);
|
|
|
|
void tsd_slow_update(tsd_t *tsd);
|
2017-01-11 10:06:31 +08:00
|
|
|
|
|
|
|
#endif /* JEMALLOC_INTERNAL_TSD_EXTERNS_H */
|