~vanvugt/mir/fix-1169020

Viewing all changes in revision 3615.

  • Committer: Tarmac
  • Author(s): Christopher James Halse Rogers
  • Date: 2016-07-28 05:37:09 UTC
  • mfrom: (3582.1.28 notls-future-improvements)
  • Revision ID: tarmac-20160728053709-8ts7cpbmqyz81u1k
Improvements to no-TLS-future.

Since we hope that the bionic-and-hybris-fight-over-TLS-slots bug will - in some halcyon future - be fixed this branch makes NoTLSFuture behave more like std::future so we hopefully don't rely on non-standard behaviour.

Additionally, because a continuation interface would be really handy for removing an implicit RPC wait in BufferStream, implement a reasonable approximation of the .then() interface in the Concurrency TS (N4107 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4107.html#future).

Approved by Alexandros Frantzis, Alan Griffiths, mir-ci-bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: