This is useful for setting up important thread local variables such as s_current. Since it's quite specialized it's kept private for the moment.
472731b sched: add interface to access thread-local variables of another thread
core/sched.cc | 14 ++++++++++++++
include/sched.hh | 2 ++
2 files changed, 16 insertions(+)
Upstream: github.com