diff options
Diffstat (limited to 'linuxthreads/internals.h')
-rw-r--r-- | linuxthreads/internals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 8cb9b6837c..3984512e4d 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -357,6 +357,13 @@ static inline pthread_descr thread_self (void) #endif } +/* If MEMORY_BARRIER isn't defined in pt-machine.h, assume the architecture + doesn't need a memory barrier instruction (e.g. Intel x86) */ + +#ifndef MEMORY_BARRIER +#define MEMORY_BARRIER() +#endif + /* Max number of times we must spin on a spinlock calling sched_yield(). After MAX_SPIN_COUNT iterations, we put the calling thread to sleep. */ |