Skip to content
Snippets Groups Projects
Select Git revision
  • 8e931a022e65f77cfb4b8673fce0daaa2ab5a4f0
  • master default protected
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
11 results

file_formats_used_by_pyfstat.md

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    boinc_api.h 5.08 KiB
    // This file is part of BOINC.
    // http://boinc.berkeley.edu
    // Copyright (C) 2008 University of California
    //
    // BOINC is free software; you can redistribute it and/or modify it
    // under the terms of the GNU Lesser General Public License
    // as published by the Free Software Foundation,
    // either version 3 of the License, or (at your option) any later version.
    //
    // BOINC is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    // See the GNU Lesser General Public License for more details.
    //
    // You should have received a copy of the GNU Lesser General Public License
    // along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
    
    #ifndef _BOINC_API_
    #define _BOINC_API_
    
    #ifdef __APPLE__
    #include <Carbon/Carbon.h>
    #endif
    
    // ANSI C API BEGINS HERE
    // Do not put implementation stuff here
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    typedef struct BOINC_OPTIONS {
        // the following are booleans, implemented as ints for portability
        int main_program;
            // this is the main program, so
            // - lock a lock file in the slot directory
            // - write finish file on successful boinc_finish()
        int check_heartbeat;
            // action is determined by direct_process_action (see below)
        int handle_trickle_ups;
            // this process is allowed to call boinc_send_trickle_up()
        int handle_trickle_downs;
            // this process is allowed to call boinc_receive_trickle_down()
        int handle_process_control;
            // action is determined by direct_process_action (see below)
        int send_status_msgs;
            // send CPU time / fraction done msgs
        int direct_process_action;
            // if heartbeat fail, or get process control msg, take
            // direction action (exit, suspend, resume).
            // Otherwise just set flag in BOINC status
        int worker_thread_stack_size;
            // if nonzero, the worker thread stack size limit
        int backwards_compatible_graphics;
            // V6 apps should set this so that "Show Graphics" will work
            // with pre-V6 clients
    } BOINC_OPTIONS;
    
    typedef struct BOINC_STATUS {
        int no_heartbeat;
        int suspended;
        int quit_request;
        int reread_init_data_file;
        int abort_request;
        double working_set_size;
        double max_working_set_size;
    } BOINC_STATUS;
    
    typedef void (*FUNC_PTR)();
    
    struct APP_INIT_DATA;