Auto merge of #2433 - devnexen:fbsd_htr_self, r=JohnTitor

freebsd native api addition to deal with thread
This commit is contained in:
bors 2021-10-07 03:17:34 +00:00
commit 3114845df2
3 changed files with 7 additions and 0 deletions

View file

@ -1830,6 +1830,7 @@ fn test_freebsd(target: &str) {
"sys/stat.h",
"sys/statvfs.h",
"sys/sysctl.h",
"sys/thr.h",
"sys/time.h",
"sys/times.h",
"sys/timex.h",

View file

@ -1752,6 +1752,9 @@ sysctl
sysctlbyname
sysctlnametomib
telldir
thr_kill
thr_kill2
thr_self
timer_create
timer_delete
timer_getoverrun

View file

@ -1791,6 +1791,9 @@ extern "C" {
pub fn uuidgen(store: *mut uuid, count: ::c_int) -> ::c_int;
pub fn thr_kill(id: ::c_long, sig: ::c_int) -> ::c_int;
pub fn thr_kill2(pid: ::pid_t, id: ::c_long, sig: ::c_int) -> ::c_int;
pub fn thr_self(tid: *mut ::c_long) -> ::c_int;
pub fn pthread_getthreadid_np() -> ::c_int;
pub fn pthread_getaffinity_np(
td: ::pthread_t,