aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-09-10 01:21:29 -0700
committerMichael Bebenita <[email protected]>2010-09-10 14:38:31 -0700
commita493350eb5ab38ba8a6563f3eb4a090d257b0d3a (patch)
treedc984eaa28a55de9f05db0b961a0e67f80ca35ef /src/rt/rust_internal.h
parentAdded lock_and_signal::signal_all(), and made the rust_kernel::join() use wai... (diff)
downloadrust-a493350eb5ab38ba8a6563f3eb4a090d257b0d3a.tar.xz
rust-a493350eb5ab38ba8a6563f3eb4a090d257b0d3a.zip
Cleanup, refactoring, and some runtime tests.
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index 0913f967..d1eec48b 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -124,6 +124,8 @@ template <typename T> struct region_owned {
}
};
+#include "rust_task_list.h"
+
// A cond(ition) is something we can block on. This can be a channel
// (writing), a port (reading) or a task (waiting).
@@ -203,9 +205,7 @@ crate_rel(rust_crate const *crate, T const *t) {
typedef void CDECL (*activate_glue_ty)(rust_task *);
-class
-rust_crate
-{
+class rust_crate {
// The following fields are emitted by the compiler for the static
// rust_crate object inside each compiled crate.
@@ -563,6 +563,7 @@ struct gc_alloc {
#include "test/rust_test_harness.h"
#include "test/rust_test_util.h"
+#include "test/rust_test_runtime.h"
//
// Local Variables: