Changes between Version 6 and Version 7 of OptionsApi


Ignore:
Timestamp:
May 29, 2011, 8:30:07 PM (13 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OptionsApi

    v6 v7  
    33== Setting options ==
    44
    5 The following runtime system options are available:
     5You can customize the behavior of the BOINC runtime system
     6by using '''boinc_init_options()''' instead of '''boinc_init()''':
     7
     8{{{
     9BOINC_OPTIONS options;
     10
     11boinc_options_defaults(options);
     12options.multi_thread = true;    // include this if your app's main process uses multiple threads
     13options.multi_process = true;   // include this if your app uses multiple processes
     14
     15boinc_init_options(&options);
     16}}}
     17
     18Do not create any threads or store the current PID
     19before calling '''boinc_init_options()'''.
     20The following options are available:
    621
    722{{{
     
    1833    int multi_process;
    1934};
    20 
    21 BOINC_OPTIONS options;
    22 boinc_options_defaults(options);   // set defaults
    23 options.main_program = 0;          // set values as needed
    24 ...
    25 int boinc_init_options(&options);
    2635}}}
    2736