summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorJon Gjengset <jon@thesquareplanet.com>2018-08-30 14:24:59 -0400
committerCarl Lerche <me@carllerche.com>2018-08-30 11:24:59 -0700
commit0745a9b88aed28e35ed26da6e0f4f7632546831c (patch)
tree1eb2c14007cf17af98c9c92651c5a4fe2e881e6d /CONTRIBUTING.md
parenta7f5ba28bab2021912ce5a33184523f6a6d9dec3 (diff)
Use spawn_local to spawn from local Handles (#565)
Previously, every call to `current_thread::Handle::spawn` would go through a `mpsc` channel. This is unnecessary when the `Handle` is still on the same thread as the current thread executor. This patch fixes that by storing the `ThreadId` of the executor when it is created, and then comparing against that when `Handle::spawn` is called. If the call is made from the same thread, `spawn_local` is used directly. Fixes #562.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions