about summary refs log tree commit diff
path: root/src/test/bench/task-perf-linked-failure.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-06 15:23:37 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-11 16:32:00 -0800
commit47ef20014c32443b12a122c0371a87f513830807 (patch)
treef31f158b6c0c0718a8b54910746eef0f24290aa3 /src/test/bench/task-perf-linked-failure.rs
parent0ac6e5afda2a9741d50d6b5c557ee16fee44878f (diff)
downloadrust-47ef20014c32443b12a122c0371a87f513830807.tar.gz
rust-47ef20014c32443b12a122c0371a87f513830807.zip
Shuffle around ownership in concurrent queues
Beforehand, using a concurrent queue always mandated that the "shared state" be
stored internally to the queues in order to provide a safe interface. This isn't
quite as flexible as one would want in some circumstances, so instead this
commit moves the queues to not containing the shared state.

The queues no longer have a "default useful safe" interface, but rather a
"default safe" interface (minus the useful part). The queues have to be shared
manually through an Arc or some other means. This allows them to be a little
more flexible at the cost of a usability hindrance.

I plan on using this new flexibility to upgrade a channel to a shared channel
seamlessly.
Diffstat (limited to 'src/test/bench/task-perf-linked-failure.rs')
0 files changed, 0 insertions, 0 deletions