00001 00010 #ifndef _EXEC_H 00011 #define _EXEC_H 00012 00013 #include <setjmp.h> 00014 #include "globals.h" 00015 #include "index.h" 00016 00017 struct sync_data { 00018 TIMESTAMP step_to; 00019 int hard_event; 00020 STATUS status; 00021 }; 00023 struct thread_data { 00024 int count; 00025 struct sync_data *data; 00026 }; 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 int exec_init(void); 00032 STATUS exec_start(void); 00033 char *simtime(void); 00034 STATUS t_setup_ranks(void); 00035 INDEX **exec_getranks(void); 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 00040 #ifndef max 00041 #define max(n, m) ((n) > (m) ? (n) : (m)) 00042 #endif 00043 00044 #endif 00045