commtechs benchs: fake_comm perform the writes
This commit is contained in:
parent
2fe89da8a2
commit
177e548efe
|
@ -9,13 +9,13 @@ struct thread_comm
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct thread_comm *tcomms;
|
extern struct thread_comm *tcomms;
|
||||||
|
extern __thread void ** volatile store_var;
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
int init_thread_comm(struct thread_comm *);
|
int init_thread_comm(struct thread_comm *);
|
||||||
int end_thread_comm(void);
|
int end_thread_comm(void);
|
||||||
static inline void send(void **addr) {
|
static inline void send(void **addr) {
|
||||||
static __thread void **store_var = NULL;
|
|
||||||
store_var = addr;
|
store_var = addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
#include <specific_comm.h>
|
#include <specific_comm.h>
|
||||||
|
|
||||||
|
|
||||||
|
__thread void ** volatile store_var = NULL;
|
||||||
|
|
||||||
|
|
||||||
int init_thread_comm(struct thread_comm *comm)
|
int init_thread_comm(struct thread_comm *comm)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue