1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef DEALY_TLS_ALLOCATOR_H_
- #define DEALY_TLS_ALLOCATOR_H_
- #include <dmmlib/allocator.h>
- #include <pthread.h>
- extern __thread allocator_t *tls_allocator;
- pthread_key_t destruction_key;
- SLIST_HEAD(allocator_list_head_s, allocator_s);
- typedef struct locking_allocator_list_s {
- struct allocator_list_head_s head;
- locktype_t lock;
- } locking_allocator_list_t;
- extern locking_allocator_list_t destructed_list;
- void push_to_destructed_list(void);
- allocator_t * initialize_allocator(void);
- void get_tls_allocator(void);
- #endif
|