#include "config.h"
#include <assert.h>
#include <pthread.h>
#include <string>
#include "maybe_threads.h"
マクロ定義 | |
#define | MAX_PERTHREAD_VALS 16 |
関数 | |
int | perftools_pthread_key_create (pthread_key_t *key, void(*destr_function)(void *)) |
void * | perftools_pthread_getspecific (pthread_key_t key) |
int | perftools_pthread_setspecific (pthread_key_t key, void *val) |
int | perftools_pthread_once (pthread_once_t *ctl, void(*init_routine)(void)) |
変数 | |
static void * | perftools_pthread_specific_vals [MAX_PERTHREAD_VALS] |
static pthread_key_t | next_key |
#define MAX_PERTHREAD_VALS 16 |
void* perftools_pthread_getspecific | ( | pthread_key_t | key | ) |
int perftools_pthread_key_create | ( | pthread_key_t * | key, | |
void(*)(void *) | destr_function | |||
) |
int perftools_pthread_once | ( | pthread_once_t * | ctl, | |
void(*)(void) | init_routine | |||
) |
tcmalloc-0.8/maybe_threads.cc の 83 行で定義されています。
参照元 MallocExtension::instance(), と MallocExtension::Register().
int perftools_pthread_setspecific | ( | pthread_key_t | key, | |
void * | val | |||
) |
pthread_key_t next_key [static] |
void* perftools_pthread_specific_vals[MAX_PERTHREAD_VALS] [static] |
tcmalloc-0.8/maybe_threads.cc の 49 行で定義されています。
参照元 perftools_pthread_getspecific(), と perftools_pthread_setspecific().