Skip to content
Snippets Groups Projects
Commit 54b03c53 authored by bors's avatar bors
Browse files

Auto merge of #1436 - condy0919:linux_pthread_setname, r=gnzlbg

Support pthread_{set,get}name_np for linux with glibc
parents f397625c 2686cc5b
No related branches found
No related tags found
No related merge requests found
......@@ -1024,6 +1024,11 @@ extern {
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::group) -> ::c_int;
pub fn pthread_getname_np(thread: ::pthread_t,
name: *mut ::c_char,
len: ::size_t) -> ::c_int;
pub fn pthread_setname_np(thread: ::pthread_t,
name: *const ::c_char) -> ::c_int;
}
cfg_if! {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment