> static inline bool finished_time_slice(ACTIVE_TASK* atp) {
> double time_running = gstate.now - atp->run_interval_start_wall_time;
> bool running_beyond_sched_period = time_running >=
> gstate.global_prefs.cpu_scheduling_period();
> double time_since_checkpoint = gstate.now - atp->checkpoint_wall_time;
> bool checkpointed_recently = time_since_checkpoint < 10;
> return (running_beyond_sched_period && checkpointed_recently);
> }
I looked at that code a while back, and wondered why it uses gstate.now
where other parts of the code use a simple 'now':
1087 atp->run_interval_start_wall_time = now;
1088 app_started = now;
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.