malleabilityStates.h 947 Bytes
Newer Older
1
2
3
4
5
6
#ifndef MALLEABILITY_STATES_H
#define MALLEABILITY_STATES_H

#include <stdio.h>
#include <stdlib.h>

7
//States
8
#define MALL_DENIED -1
9
10
11
enum mall_states{MALL_UNRESERVED, MALL_NOT_STARTED, MALL_ZOMBIE, MALL_SPAWN_PENDING, MALL_SPAWN_SINGLE_PENDING, 
	MALL_SPAWN_SINGLE_COMPLETED, MALL_SPAWN_ADAPT_POSTPONE, MALL_SPAWN_COMPLETED, MALL_DIST_PENDING, MALL_DIST_COMPLETED, 
	MALL_SPAWN_ADAPT_PENDING, MALL_SPAWN_ADAPTED, MALL_COMPLETED};
12
13
14
15
enum mall_spawn_methods{MALL_SPAWN_BASELINE, MALL_SPAWN_MERGE};
#define MALL_SPAWN_PTHREAD 2
#define MALL_SPAWN_SINGLE 3

16
17
18
19
enum mall_redistribution_methods{MALL_RED_BASELINE, MALL_RED_POINT, MALL_RED_RMA_LOCK, MALL_RED_RMA_LOCKALL};
#define MALL_RED_THREAD 2
#define MALL_RED_IBARRIER 3

20
#define MALLEABILITY_ROOT 0
21

22
23
24
#define MAL_APP_EXECUTING 0
#define MAL_APP_ENDED 1

25
//TODO DEPRECATE
26
27
#define MAL_INT 0
#define MAL_CHAR 1
28
////////////////
29
30
31

#define MALLEABILITY_CHILDREN 1
#define MALLEABILITY_NOT_CHILDREN 0
32
33

#endif