From 02f6645fca946fd7cb9f55036c05a908f0567ceb Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Tue, 28 Jun 2011 11:34:20 -0700 Subject: Moved win32_require to the kernel. --- src/rt/rust_timer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_timer.cpp') diff --git a/src/rt/rust_timer.cpp b/src/rt/rust_timer.cpp index 79cb1615bbc..2d732a23591 100644 --- a/src/rt/rust_timer.cpp +++ b/src/rt/rust_timer.cpp @@ -57,7 +57,7 @@ rust_timer::rust_timer(rust_dom *dom) : DLOG(dom, timer, "creating timer for domain 0x%" PRIxPTR, dom); #if defined(__WIN32__) thread = CreateThread(NULL, 0, timer_loop, this, 0, NULL); - dom->win32_require("CreateThread", thread != NULL); + dom->kernel->win32_require("CreateThread", thread != NULL); if (RUNNING_ON_VALGRIND) Sleep(10); #else @@ -70,8 +70,9 @@ rust_timer::rust_timer(rust_dom *dom) : rust_timer::~rust_timer() { exit_flag = 1; #if defined(__WIN32__) - dom->win32_require("WaitForSingleObject", - WaitForSingleObject(thread, INFINITE) == WAIT_OBJECT_0); + dom->kernel->win32_require("WaitForSingleObject", + WaitForSingleObject(thread, INFINITE) == + WAIT_OBJECT_0); #else pthread_join(thread, NULL); #endif -- cgit 1.4.1-3-g733a5