Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F7631775
controld_timers.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
controld_timers.h
View Options
/*
* Copyright 2004-2019 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU Lesser General Public License
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
*/
#ifndef CONTROLD_TIMERS__H
# define CONTROLD_TIMERS__H
# include <stdbool.h> // bool
# include <glib.h> // gboolean, gpointer, guint
# include <controld_fsa.h> // crmd_fsa_input
typedef struct fsa_timer_s {
guint source_id; // Timer source ID
guint period_ms; // Timer period
enum crmd_fsa_input fsa_input; // Input to register if timer pops
gboolean (*callback) (gpointer data); // What do if timer pops
bool log_error; // Timer popping indicates error
int counter; // For detecting loops
} fsa_timer_t;
extern fsa_timer_t *election_trigger;
extern fsa_timer_t *shutdown_escalation_timer;
extern fsa_timer_t *transition_timer;
extern fsa_timer_t *integration_timer;
extern fsa_timer_t *finalization_timer;
extern fsa_timer_t *wait_timer;
extern fsa_timer_t *recheck_timer;
extern guint recheck_interval_ms;
extern time_t recheck_by;
bool controld_init_fsa_timers(void);
void controld_free_fsa_timers(void);
gboolean controld_stop_timer(fsa_timer_t *timer);
void controld_start_timer(fsa_timer_t *timer);
void controld_start_recheck_timer(void);
gboolean is_timer_started(fsa_timer_t *timer);
const char *get_timer_desc(fsa_timer_t * timer);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Oct 16, 3:07 PM (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436273
Default Alt Text
controld_timers.h (1 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment