From 177e548efedf7110999f476e1f4e92672e5e3f6c Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 24 Jun 2009 23:35:58 +0200 Subject: [PATCH] commtechs benchs: fake_comm perform the writes --- communication_techniques/include/fake_comm.h | 2 +- communication_techniques/src/communication/fake.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/communication_techniques/include/fake_comm.h b/communication_techniques/include/fake_comm.h index b0d85a6..ac9f3c2 100644 --- a/communication_techniques/include/fake_comm.h +++ b/communication_techniques/include/fake_comm.h @@ -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; } diff --git a/communication_techniques/src/communication/fake.c b/communication_techniques/src/communication/fake.c index c92192c..ffd72c3 100644 --- a/communication_techniques/src/communication/fake.c +++ b/communication_techniques/src/communication/fake.c @@ -9,6 +9,9 @@ #include +__thread void ** volatile store_var = NULL; + + int init_thread_comm(struct thread_comm *comm) { return 0;