1 /****************************************************************
\r
2 * Common structs for the PPU
\r
3 * Creator: lschor, 2008-11-21
\r
4 * Description: Common structs for the PPU
\r
7 * - 2008-11-21: Created
\r
10 #ifndef __COMMON_PPU_H__
\r
11 #define __COMMON_PPU_H__
\r
14 #define GETINDEX(dimension) \
\r
15 ((ProcessWrapper*)(p->wptr))->index[dimension]
\r
17 #define CREATEPORTVAR(name) \
\r
20 #define CREATEPORT(port, base, number_of_indices, index_range_pairs...) \
\r
21 createPort(&port, base, number_of_indices, index_range_pairs)
\r
24 // Struct for a process
\r
25 typedef struct _process_wrapper {
\r
28 uint32_t is_detached;
\r
29 volatile uint32_t* port_id;
\r
30 volatile uint32_t* port_queue_id;
\r
31 uint32_t number_of_ports;
\r
36 int * processFinished;
\r
37 pthread_mutex_t * mutex;
\r
38 pthread_mutex_t * mutexProcessNr;
\r