diff options
| author | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-16 18:44:26 -0700 |
|---|---|---|
| committer | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-16 18:44:26 -0700 |
| commit | 5d98a311e41316635327479278e3d41be54771d1 (patch) | |
| tree | 8a6ff71650223b2b6c452074308d4d6b4d2bea81 /src/rt/sync/timer.cpp | |
| parent | 14f5b5750d6509ca69180341b82e99f7fbf9fddb (diff) | |
| download | rust-5d98a311e41316635327479278e3d41be54771d1.tar.gz rust-5d98a311e41316635327479278e3d41be54771d1.zip | |
Putting out the burning tree on Windows. Turns out you can completely starve threads by not yielding on windows/vmware, really weird.
Diffstat (limited to 'src/rt/sync/timer.cpp')
| -rw-r--r-- | src/rt/sync/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/sync/timer.cpp b/src/rt/sync/timer.cpp index e45dd633314..0487b39796f 100644 --- a/src/rt/sync/timer.cpp +++ b/src/rt/sync/timer.cpp @@ -6,12 +6,12 @@ #endif timer::timer() { - reset(0); #if __WIN32__ uint64_t ticks_per_second; QueryPerformanceFrequency((LARGE_INTEGER *)&ticks_per_second); _ticks_per_us = ticks_per_second / 1000000; #endif + reset(0); } void |
