diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-06-28 11:34:20 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-28 16:12:33 -0700 |
| commit | 02f6645fca946fd7cb9f55036c05a908f0567ceb (patch) | |
| tree | 88d71ff1fd10f3f8312f2c8a1041d7eeaf0251e4 /src/rt/rust_timer.cpp | |
| parent | 2f84987a48c3625670cd62321f0e3dcb5c0e8768 (diff) | |
| download | rust-02f6645fca946fd7cb9f55036c05a908f0567ceb.tar.gz rust-02f6645fca946fd7cb9f55036c05a908f0567ceb.zip | |
Moved win32_require to the kernel.
Diffstat (limited to 'src/rt/rust_timer.cpp')
| -rw-r--r-- | src/rt/rust_timer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
