Support pthread_{set,get}name_np for linux with glibc
@@ -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! {
