Changes between Version 44 and Version 45 of BasicApi


Ignore:
Timestamp:
May 28, 2014, 10:44:00 AM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v44 v45  
    264264== Temporary exit ==
    265265
    266 If a GPU application fails to allocate GPU RAM, it may be a temporary problem
    267 (non-BOINC programs have GPU RAM allocated).
    268 In this case they should call
    269 
    270 {{{
    271 #!c++
    272 int boinc_temporary_exit(int delay, const char* reason=NULL);
    273 }}}
    274 
    275 This will exit the application, and will tell the BOINC client to restart it
     266If an application is unable to run because of a transient condition,
     267it should call
     268
     269{{{
     270#!c++
     271int boinc_temporary_exit(int delay, const char* reason=NULL, bool is_notice=false);
     272}}}
     273
     274This will exit the application and tell the BOINC client to restart it
    276275again in at least '''delay''' seconds.
    277276(This works with 6.10.25+ client;
    278277on other clients, it will potentially restart immediately).
    279278'''Reason''', if supplied, is shown to the user as the explanation for the deferral.
     279If '''is_notice''' is true, it's shown as a notice
     280(this should be used only for conditions that the user can fix).
     281
     282Examples:
     283 * A GPU application fails to allocate GPU RAM because non-BOINC programs have GPU RAM allocated.
     284 * The Vboxwrapper sees that an incompatible version of VirtualBox is installed.
     285   In this case "is_notice" would be true,
     286   because the user can update VirtualBox.