El Vie 12 Jun 2009 15:50:03 Jeremy Cowles escribió:
> Agreed. Also, it would be nice to expose the suspend/quit/checkpoint api
> (boinc_status) into Python, or is this already available?

You don't need to notify the Python code when it's suspended, since it will be 
suspended at the process level anyway. The only time it matters is if your 
app starts another app, then the parent needs to handle a suspend message by 
suspending the child. The official WrapperApp already does this.

Your python code shouldn't need to know when a "quit" happens, for example to 
save data cleanly, because it's supposed to work with unclean quits anyway 
(like power outages). Save data atomically on checkpoints.

Those two items apply to BOINC applications in any language.

I could easily expose the checkpoint API on my Python wrapper if needed 
(easily but not quickly; I'm currently having a lot of distractions and 
interruptions)
_______________________________________________
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.

Reply via email to