my_rtrm.h 534 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __MY_RTRM_H__
  2. #define __MY_RTRM_H__
  3. #include "variables.h"
  4. #define CLUSTER_SIZE 6
  5. //#define MAX_STR_NAME_SIZE 256
  6. #ifdef PLAT_SCC
  7. #include "RCCE.h"
  8. #else
  9. #include <sys/ipc.h>
  10. #include <sys/shm.h>
  11. #include <sys/time.h>
  12. #include <sys/wait.h>
  13. #include <sys/types.h>
  14. #define MAX_SIGNAL_LIST_LEN 256
  15. #endif
  16. int PREPARE_ACCEPT_SENT;
  17. int CORE_HAS_ACCEPTED_VALUE;
  18. int SIG_LEARN_SENT;
  19. int proposal_number_personal;
  20. #ifdef PLAT_SCC
  21. RCCE_FLAG proposal_number_lock;
  22. #else
  23. sem_t *cores_detected;
  24. #endif
  25. int **core_detected;
  26. #endif