rt_benchs/communication_techniques/include/fake_comm.h

31 lines
500 B
C

#ifndef __COMM_H_
#define __COMM_H_ 1
#include <stdint.h>
/* Non standard include */
#include <common_comm.h>
#define FAKE_NURSERY_START 1
struct communication_assoc
{
struct communication_assoc *next;
struct communication_assoc *prev;
pthread_t tid;
};
extern struct communication_assoc assoc_root;
__BEGIN_DECLS
struct communication_assoc *create_comm_assoc(void);
static inline void send(void **addr) {
static __thread void **store_var = NULL;
store_var = addr;
}
__END_DECLS
#endif