Opened 17 years ago
Last modified 16 years ago
#450 closed Enhancement
Checkpoint while standalone — at Version 1
Reported by: | Nicolas | Owned by: | Bruce Allen |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | BOINC - API | Version: | |
Keywords: | Cc: |
Description (last modified by )
Debugging checkpoint code can be hard if it requires running under the control of the core client, so it's often useful to make it checkpoint without caring about preferences when running as standalone. For example, making it checkpoint always if standalone (instead of calling boinc_time_to_checkpoint), but that causes too much I/O. Other workarounds that devs could use reduce performance of the application both as standalone and with client (because of all the extra function calls). One way to avoid that performance hit is using function pointers. That already gets quite messy...
I suggest adding a feature inside boinc_time_to_checkpoint
itself to return true every few seconds if running standalone. Maybe make it possible to disable using #ifdef
, and add a #define
for changing the time between checkpoints.
Change History (3)
Changed 17 years ago by
Attachment: | always_checkpoint.c added |
---|
Changed 17 years ago by
Attachment: | other_workaround.c added |
---|
Another workaround: if standalone, call a different function
comment:1 Changed 17 years ago by
Description: | modified (diff) |
---|
A really simple workaround: make it checkpoint always