summary refs log tree commit diff
path: root/src/libgreen/message_queue.rs
AgeCommit message (Collapse)AuthorLines
2014-05-21std,green: Mark some queue types as NoShareAlex Crichton-2/+6
2014-05-19green: Remove usage of UnsafeArcAlex Crichton-11/+11
2014-03-31green: Switch field privacy as necessaryAlex Crichton-2/+2
2014-02-11Shuffle around ownership in concurrent queuesAlex Crichton-0/+61
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.