]> git.lizzy.rs Git - rust.git/commit
std: Hardcode pthread constants and structures
authorAlex Crichton <alex@alexcrichton.com>
Fri, 17 Jan 2014 03:54:24 +0000 (19:54 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 3 Feb 2014 20:04:30 +0000 (12:04 -0800)
commit99582f88847b6c1feba61c4cbce7e95308d5103b
treebfb01ba7aa26a8a17cdd7d87b2bf470b122b1b22
parent24631c8bcd294c07f9c9779628ac2da761d52d6f
std: Hardcode pthread constants and structures

This allows for easier static initialization of a pthread mutex, although the
windows mutexes still sadly suffer.

Note that this commit removes the clone() method from a mutex because it no
longer makes sense for pthreads mutexes. This also removes the Once type for
now, but it'll get added back shortly.
src/libgreen/sched.rs
src/libstd/unstable/mutex.rs
src/rt/rust_builtin.c