mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-18 00:21:41 +03:00
This tests the combination of the prof_recent and thread_name features. Verified that it catches the issue being fixed in this PR. Also explicitly set thread name in test/unit/prof_recent. This fixes the name testing when no default thread name is set (e.g. FreeBSD).
11 lines
288 B
C
11 lines
288 B
C
/* Abstraction layer for threading in tests. */
|
|
#ifdef _WIN32
|
|
typedef HANDLE thd_t;
|
|
#else
|
|
typedef pthread_t thd_t;
|
|
#endif
|
|
|
|
void thd_create(thd_t *thd, void *(*proc)(void *), void *arg);
|
|
void thd_join(thd_t thd, void **ret);
|
|
bool thd_has_setname(void);
|
|
void thd_setname(const char *name);
|