summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-20 20:45:13 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-20 20:45:13 +0100
commit22dff6b7a6839e77d713d671cb2038e56b64ac16 (patch)
tree5863ed3d1846228c0434ae9cf9f9d03ede2a953a /kern/thread.h
parentf923f7a361c8a0b4d081dc04672a59ccd8828704 (diff)
kern/rcu: new module
This module implements preemptible RCU.
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 58322bda..c4dbd5d1 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -679,6 +679,16 @@ thread_llsync_read_dec(void)
}
/*
+ * RCU functions.
+ */
+
+static inline struct rcu_reader *
+thread_rcu_reader(struct thread *thread)
+{
+ return &thread->rcu_reader;
+}
+
+/*
* Type for thread-specific data destructor.
*/
typedef void (*thread_dtor_fn_t)(void *);