File: state_private.h

package info (click to toggle)
openmpi 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 99,912 kB
  • ctags: 55,589
  • sloc: ansic: 525,999; f90: 18,307; makefile: 12,062; sh: 6,583; java: 6,278; asm: 3,515; cpp: 2,227; perl: 2,136; python: 1,350; lex: 734; fortran: 52; tcl: 12
file content (81 lines) | stat: -rw-r--r-- 2,754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * Copyright (c) 2011-2013 Los Alamos National Security, LLC.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
/** @file:
 */

#ifndef ORTE_MCA_STATE_PRIVATE_H
#define ORTE_MCA_STATE_PRIVATE_H

/*
 * includes
 */
#include "orte_config.h"
#include "orte/constants.h"
#include "orte/types.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif  /* HAVE_UNISTD_H */

#include "orte/mca/plm/plm_types.h"
#include "orte/runtime/orte_globals.h"

#include "orte/mca/state/state.h"

BEGIN_C_DECLS

/*
 * Base functions
 */
ORTE_DECLSPEC void orte_state_base_activate_job_state(orte_job_t *jdata,
                                                      orte_job_state_t state);

ORTE_DECLSPEC int orte_state_base_add_job_state(orte_job_state_t state,
                                                orte_state_cbfunc_t cbfunc,
                                                int priority);

ORTE_DECLSPEC int orte_state_base_set_job_state_callback(orte_job_state_t state,
                                                         orte_state_cbfunc_t cbfunc);

ORTE_DECLSPEC int orte_state_base_set_job_state_priority(orte_job_state_t state,
                                                         int priority);

ORTE_DECLSPEC int orte_state_base_remove_job_state(orte_job_state_t state);

ORTE_DECLSPEC void orte_util_print_job_state_machine(void);


ORTE_DECLSPEC void orte_state_base_activate_proc_state(orte_process_name_t *proc,
                                                       orte_proc_state_t state);

ORTE_DECLSPEC int orte_state_base_add_proc_state(orte_proc_state_t state,
                                                 orte_state_cbfunc_t cbfunc,
                                                 int priority);

ORTE_DECLSPEC int orte_state_base_set_proc_state_callback(orte_proc_state_t state,
                                                          orte_state_cbfunc_t cbfunc);

ORTE_DECLSPEC int orte_state_base_set_proc_state_priority(orte_proc_state_t state,
                                                          int priority);

ORTE_DECLSPEC int orte_state_base_remove_proc_state(orte_proc_state_t state);

ORTE_DECLSPEC void orte_util_print_proc_state_machine(void);

/* common state processing functions */
ORTE_DECLSPEC void orte_state_base_local_launch_complete(int fd, short argc, void *cbdata);
ORTE_DECLSPEC void orte_state_base_cleanup_job(int fd, short argc, void *cbdata);
ORTE_DECLSPEC void orte_state_base_report_progress(int fd, short argc, void *cbdata);
ORTE_DECLSPEC void orte_state_base_track_procs(int fd, short argc, void *cbdata);
ORTE_DECLSPEC void orte_state_base_check_all_complete(int fd, short args, void *cbdata);


END_C_DECLS
#endif