Skip to content
Snippets Groups Projects
Select Git revision
  • 7607793f34e58671cc571b5f4de648ebdc8fb5cb
  • master default
2 results

test_property.py

Blame
  • Forked from finesse / pykat
    Source project has a limited visibility.
    boinc_api.h 5.10 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 backwards_compatible_graphics;
            // V6 apps should set this so that "Show Graphics" will work
            // with pre-V6 clients
        int normal_thread_priority;
            // run app at normal thread priority on Win.
            // (default is idle priority)
        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
    } 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)();