diff options
| author | bors <bors@rust-lang.org> | 2013-10-09 07:31:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-09 07:31:36 -0700 |
| commit | 2e64a718ea7db51f79a46441907bf659cb761e9c (patch) | |
| tree | 21763a628e345263523b01905de4b57ca2063259 /src/rt/rust_builtin.cpp | |
| parent | a3b04c1535ab0e733e59b8e1f7801e523cd72fa3 (diff) | |
| parent | 88593fc3fc808e78dd89be95c997c94ba4c816da (diff) | |
| download | rust-2e64a718ea7db51f79a46441907bf659cb761e9c.tar.gz rust-2e64a718ea7db51f79a46441907bf659cb761e9c.zip | |
auto merge of #9664 : alexcrichton/rust/logging, r=huonw
This makes some headway on #3309, see commits for details.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index d1d4286a7c6..13fc3f1aa81 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -320,27 +320,6 @@ rust_mktime(rust_tm* timeptr) { return mktime(&t); } -static lock_and_signal log_lock; -static bool log_to_console = true; - -extern "C" CDECL void -rust_log_console_on() { - scoped_lock with(log_lock); - log_to_console = true; -} - -extern "C" CDECL void -rust_log_console_off() { - scoped_lock with(log_lock); - log_to_console = false; -} - -extern "C" CDECL uintptr_t -rust_should_log_console() { - scoped_lock with(log_lock); - return log_to_console; -} - extern "C" lock_and_signal* rust_create_little_lock() { return new lock_and_signal(); |
