mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-16 17:05:39 +03:00
Add the prof_sys_thread_name feature in the prof_recent unit test.
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).
This commit is contained in:
parent
94ace05832
commit
d4a2b8bab1
4 changed files with 29 additions and 11 deletions
|
|
@ -5,5 +5,7 @@ typedef HANDLE thd_t;
|
|||
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);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue