Changes between Version 8 and Version 9 of BasicApi
- Timestamp:
- Jun 11, 2007, 10:09:34 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BasicApi
v8 v9 66 66 }}} 67 67 68 This deals with platform-specific problems. On Windows, where security and indexing programs can briefly lock files, `boinc_fopen()` does several retries at 1-second intervals. On Unix, where signals can cause `fopen()` to fail with EINTR, `boinc_fopen` checks for this and does a few retries; it also sets the 'close-on-exec' flag.68 This deals with platform-specific problems. On Windows, where security and indexing programs can briefly lock files, `boinc_fopen()` does several retries at 1-second intervals. On Unix, where signals can cause `fopen()` to fail with `EINTR`, `boinc_fopen` checks for this and does a few retries; it also sets the 'close-on-exec' flag. 69 69 70 70 == Checkpointing == … … 93 93 }}} 94 94 95 Call these around code segments during which you don't want to be suspended or killed by the core client. NOTE: this is done automatically while checkpointing. 95 Call these around code segments during which you don't want to be suspended or killed by the core client. 96 97 '''NOTE:''' This is done automatically while checkpointing. 96 98 97 99 == Atomic file update == … … 128 130 }}} 129 131 130 This lets the application report to the core client the total number of floating-point and/or integer operations since the start of the result. If `floating_point_ops` is nonzero, it's used to compute credit and integer_opsis ignored.132 This lets the application report to the core client the total number of floating-point and/or integer operations since the start of the result. If `floating_point_ops` is nonzero, it's used to compute credit and `integer_ops` is ignored. 131 133 `boinc_ops_cumulative()` may be called multiple times, but only the last call makes any difference. 132 134 … … 145 147 }}} 146 148 147 returns the last value set, or `-1`if none has been set (this would typically be called from graphics code).149 returns the last value set, or -1 if none has been set (this would typically be called from graphics code). 148 150 149 151 == Communicating with the core client == … … 208 210 ||'''wu_name'''||Name of workunit being processed|| 209 211 ||'''authenticator'''||User's authenticator for this project|| 210 ||'''slot'''||The number of the app's 'slot' (0, 1, ...)||212 ||'''slot'''||The number of the app's 'slot'|| 211 213 ||'''user_total_credit'''||User's total work for this project.|| 212 214 ||'''user_expavg_credit'''||User's recent average work per day.||