We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9af93ad + 11c9871 commit 1b37afeCopy full SHA for 1b37afe
src/libstd/rt/thread.rs
@@ -245,6 +245,7 @@ mod imp {
245
let arg: *libc::c_void = cast::transmute(p);
246
assert_eq!(pthread_create(&mut native, &attr,
247
super::thread_start, arg), 0);
248
+ assert_eq!(pthread_attr_destroy(&mut attr), 0);
249
native
250
}
251
@@ -303,6 +304,7 @@ mod imp {
303
304
fn pthread_join(native: libc::pthread_t,
305
value: **libc::c_void) -> libc::c_int;
306
fn pthread_attr_init(attr: *mut libc::pthread_attr_t) -> libc::c_int;
307
+ fn pthread_attr_destroy(attr: *mut libc::pthread_attr_t) -> libc::c_int;
308
fn pthread_attr_setstacksize(attr: *mut libc::pthread_attr_t,
309
stack_size: libc::size_t) -> libc::c_int;
310
fn pthread_attr_setdetachstate(attr: *mut libc::pthread_attr_t,
0 commit comments