summaryrefslogtreecommitdiffstats
path: root/tokio/src/signal
diff options
context:
space:
mode:
authorJohn-John Tedro <udoprog@tedro.se>2020-12-04 06:29:59 +0100
committerGitHub <noreply@github.com>2020-12-03 21:29:59 -0800
commita125ebd745f31098aa170cb1009ff0fe34508d37 (patch)
tree8dab5d17383a5f63f7554ec009cf6e1408c46d96 /tokio/src/signal
parent00500d1b35f00c68117d8f4e7320303e967e92e3 (diff)
rt: fix panic in task abort when off rt (#3159)
A call to `JoinHandle::abort` releases a task. When called from outside of the runtime, this panics due to the current implementation checking for a thread-local worker context. This change makes accessing the thread-local context optional under release, by falling back to remotely marking a task remotely as dropped. Behaving the same as if the core was stolen by another worker. Fixes #3157
Diffstat (limited to 'tokio/src/signal')
0 files changed, 0 insertions, 0 deletions