summaryrefslogtreecommitdiff
path: root/kern/thread_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread_i.h')
-rw-r--r--kern/thread_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread_i.h b/kern/thread_i.h
index 34761e56..2e1b88aa 100644
--- a/kern/thread_i.h
+++ b/kern/thread_i.h
@@ -195,13 +195,13 @@ void thread_destroy(struct thread *thread);
static inline void
thread_set_flag(struct thread *thread, unsigned long flag)
{
- atomic_or(&thread->flags, flag, ATOMIC_SEQ_CST);
+ atomic_or_acq_rel(&thread->flags, flag);
}
static inline void
thread_clear_flag(struct thread *thread, unsigned long flag)
{
- atomic_and(&thread->flags, ~flag, ATOMIC_SEQ_CST);
+ atomic_and_acq_rel(&thread->flags, ~flag);
}
static inline int