-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf2.cactivity_gen.h
48 lines (43 loc) · 1.24 KB
/
f2.cactivity_gen.h
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
#ifndef __ACTIVITY_GEN_H__
#define __ACTIVITY_GEN_H__
#include <windows.h>
#include "consistency_api.h"
#include "activation_record.h"
enum ActivityTypes {ParForType = 0, ParBlockType = 1,ParMainType = 2};
enum CSWTypes {CSWMaster = 0, CSWSlave, CSWBoth,CSWNone};
extern __declspec(thread) unsigned long __CSCounter;
extern CRITICAL_SECTION DSM_STACK_CS;
class CActivity
{
char __Dummy[PAGE_SIZE];
static int *stack;
static int my_esp;
void Finalize(CActivationRecord *, unsigned long &);
void csw(CActivationRecord *&);
void __RunParBlock(CActivationRecord &, unsigned long );
void __RunParBlock(int, int, ...);
void __RunInPlaceParBlock(CActivationRecord *, int, int, ...);
void __RunParFor(int , int , int , int , int , ...);
void __RunInPlaceParFor(CActivationRecord *, int , int , int , int , int , ...);
public :
CActivity();
void Run(CActivationRecord *);
void CheckEsp(){}
void InitGlobals(unsigned int stack_size)
{
InitializeCriticalSection(&DSM_STACK_CS);
stack = (int *) dsm_malloc(stack_size);
}
void Init()
{
__CSCounter = 0;
}
void __SpawnParConstruct(CActivationRecord *);
int A[100];
int B[100];
int C[100];
int D[100];
int y;
int f2(CActivationRecord * ,int k);
};
#endif