[svn:parrot] r38582 - trunk/src
petdance at svn.parrot.org
petdance at svn.parrot.org
Fri May 8 03:22:11 UTC 2009
Author: petdance
Date: Fri May 8 03:22:08 2009
New Revision: 38582
URL: https://trac.parrot.org/parrot/changeset/38582
Log:
const some timers
Modified:
trunk/src/scheduler.c
Modified: trunk/src/scheduler.c
==============================================================================
--- trunk/src/scheduler.c Fri May 8 03:17:20 2009 (r38581)
+++ trunk/src/scheduler.c Fri May 8 03:22:08 2009 (r38582)
@@ -1008,7 +1008,7 @@
#if PARROT_HAS_THREADS
Parrot_cond condition;
Parrot_mutex lock;
- FLOATVAL timer_end = time + Parrot_floatval_time();
+ const FLOATVAL timer_end = time + Parrot_floatval_time();
struct timespec time_struct;
/* Tell the scheduler runloop to wake, this is a good time to process
@@ -1029,7 +1029,7 @@
/* A more primitive, platform-specific, non-threaded form of sleep. */
if (time > 1000) {
/* prevent integer overflow when converting to microseconds */
- int seconds = floor(time);
+ const int seconds = floor(time);
Parrot_sleep(seconds);
time -= seconds;
}
More information about the parrot-commits
mailing list