Changes between Version 26 and Version 27 of BasicApi


Ignore:
Timestamp:
Jan 1, 2010, 1:42:22 PM (14 years ago)
Author:
Nicolas
Comment:

Warn that boinc_init_parallel will fork.

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v26 v27  
    1717== Initialization and termination == #init
    1818
     19Initialization must be done before calling other BOINC functions.
     20
    1921To initialize a single-thread program, call
    20 
    2122{{{
    2223#!c++
     
    2930}}}
    3031
    31 Initialization must be done before calling other BOINC functions.
     32Note that `boinc_init_parallel` will `fork` on Unix systems,
     33so you must not create any thread or try to store the current PID
     34before calling this function.
     35If this function succeeds,
     36the parent (original) process will run an internal loop,
     37and will not return;
     38code following the `boinc_init_parallel` call will run in the child process.
    3239
    3340When the application has completed it must call