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 __thread void ** volatile store_var;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int init_thread_comm(struct thread_comm *);
|
||||
int end_thread_comm(void);
|
||||
static inline void send(void **addr) {
|
||||
static __thread void **store_var = NULL;
|
||||
store_var = addr;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
#include <specific_comm.h>
|
||||
|
||||
|
||||
__thread void ** volatile store_var = NULL;
|
||||
|
||||
|
||||
int init_thread_comm(struct thread_comm *comm)
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue