Skip to content

Commit 29a5936

Browse files
committed
Merge pull request #74 from Manishearth/patch-1
Update concurrency post to mention current state of scoped threads
2 parents 735345f + bce3fa3 commit 29a5936

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_posts/2015-04-10-Fearless-Concurrency.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,12 @@ Disaster averted.
475475

476476
### Sharing the stack: "scoped"
477477

478+
_Note: The API mentioned here is an old one which has been moved out of
479+
the standard library. You can find equivalent functionality in
480+
[`crossbeam`][crossbeam-crate] ([documentation for `scope()`][crossbeam-doc])
481+
and [`scoped_threadpool`][scoped-threadpool-crate]
482+
([documentation for `scoped()`][scoped-threadpool-doc])_
483+
478484
So far, all the patterns we've seen involve creating data structures
479485
on the heap that get shared between threads. But what if we wanted to
480486
start some threads that make use of data living in our stack frame?
@@ -611,3 +617,7 @@ months. Stay tuned!
611617
[scoped]: http://static.rust-lang.org/doc/master/std/thread/fn.scoped.html
612618
[syncbox]: https://github.com/carllerche/syncbox
613619
[simple_parallel]: https://github.com/huonw/simple_parallel
620+
[crossbeam-crate]: https://crates.io/crates/crossbeam
621+
[crossbeam-doc]: http://aturon.github.io/crossbeam-doc/crossbeam/fn.scope.html
622+
[scoped-threadpool-crate]: https://crates.io/crates/scoped_threadpool
623+
[scoped-threadpool-doc]: http://kimundi.github.io/scoped-threadpool-rs/scoped_threadpool/index.html#examples:

0 commit comments

Comments
 (0)