summaryrefslogtreecommitdiff
path: root/kern/thread_i.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-13 21:23:50 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-13 21:23:50 +0200
commit72ed0dc2f153e7cf1d6e96f86a773bbe490e9e1c (patch)
tree8161eda7bec209778b30fdfdb19f154df4cab2a7 /kern/thread_i.h
parent61df7f19dfe3b56abf6c4d00589414c60716ac2b (diff)
Various atomic access fixes
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 2e1b88aa..6f08c335 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_acq_rel(&thread->flags, flag);
+ atomic_or(&thread->flags, flag, ATOMIC_RELEASE);
}
static inline void
thread_clear_flag(struct thread *thread, unsigned long flag)
{
- atomic_and_acq_rel(&thread->flags, ~flag);
+ atomic_and(&thread->flags, ~flag, ATOMIC_RELEASE);
}
static inline int