Changes between Version 8 and Version 9 of BasicApi


Ignore:
Timestamp:
Jun 11, 2007, 10:09:34 AM (17 years ago)
Author:
Nicolas
Comment:

Minor formatting changes.

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v8 v9  
    6666}}}
    6767
    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.
     68This 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.
    6969
    7070== Checkpointing ==
     
    9393}}}
    9494
    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.
     95Call 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.
    9698
    9799== Atomic file update ==
     
    128130}}}
    129131
    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_ops is ignored.
     132This 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.
    131133`boinc_ops_cumulative()` may be called multiple times, but only the last call makes any difference.
    132134
     
    145147}}}
    146148
    147 returns the last value set, or `-1` if none has been set (this would typically be called from graphics code).
     149returns the last value set, or -1 if none has been set (this would typically be called from graphics code).
    148150
    149151== Communicating with the core client ==
     
    208210||'''wu_name'''||Name of workunit being processed||
    209211||'''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'||
    211213||'''user_total_credit'''||User's total work for this project.||
    212214||'''user_expavg_credit'''||User's recent average work per day.||