Revision d242a2c6

View differences:

include/scheduler_la.h
142 142
                     filterFunction filter,
143 143
                     pairEvaluateFunction pairevaluate);
144 144

  
145

  
146
/*---selector function----------------*/
147
/**
148
  * casted evaluator for generic use in generic selector functions
149
  */
150
typedef double (*evaluateFunction)(void*);
151

  
152
/**
153
  * Select best N of K with the given ordering method
154
  */
155
void selectWithOrdering(SchedOrdering ordering, size_t size, unsigned char *base, size_t nmemb, double(*evaluate)(void *), unsigned char *selected,size_t *selected_len);
156

  
145 157
#endif /* SCHEDULER_LA_H */
src/Scheduler/sched.c
11 11
#define MAX(A,B)    ((A)>(B) ? (A) : (B))
12 12
#define MIN(A,B)    ((A)<(B) ? (A) : (B))
13 13

  
14
/**
15
  * casted evaluator for generic use in generic selector functions
16
  */
17
typedef double (*evaluateFunction)(void*);
18

  
19 14
struct iw {
20 15
  int index;
21 16
  double weight;

Also available in: Unified diff