Changes between Version 44 and Version 45 of BasicApi
- Timestamp:
- May 28, 2014, 10:44:00 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BasicApi
v44 v45 264 264 == Temporary exit == 265 265 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 266 If an application is unable to run because of a transient condition, 267 it should call 268 269 {{{ 270 #!c++ 271 int boinc_temporary_exit(int delay, const char* reason=NULL, bool is_notice=false); 272 }}} 273 274 This will exit the application and tell the BOINC client to restart it 276 275 again in at least '''delay''' seconds. 277 276 (This works with 6.10.25+ client; 278 277 on other clients, it will potentially restart immediately). 279 278 '''Reason''', if supplied, is shown to the user as the explanation for the deferral. 279 If '''is_notice''' is true, it's shown as a notice 280 (this should be used only for conditions that the user can fix). 281 282 Examples: 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.