Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3151988
score.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
score.h
View Options
/**
@file Quorum daemon scoring functions + thread header file
*/
#ifndef _SCORE_H
#define _SCORE_H
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
struct h_data {
char * program;
int score;
int available;
int tko;
int interval;
int misses;
pid_t childpid;
time_t nextrun;
};
/*
Grab score data from CCSD
*/
int configure_heuristics(int ccsfd, struct h_data *hp, int max);
/*
Start the thread which runs the scoring applets
*/
int start_score_thread(qd_ctx *ctx, struct h_data *h, int count);
/*
Get our score + maxscore
*/
int get_my_score(int *score, int *maxscore);
/*
Set score + maxscore to 1. Call if no heuristics are present
to enable master-wins mode
*/
int fudge_scoring(void);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Feb 24, 2:14 PM (6 h, 3 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464253
Default Alt Text
score.h (751 B)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment