5 Sep
2015
5 Sep
'15
2:24 a.m.
2015-09-05 0:32 GMT+02:00 Giovanni Piero Deretta
I believe that a future can be implemented efficiently without any internal mutex or condition variable (which would relegated only to the wait side). A spin lock might be needed to implement a tiny critical session in 'then' or 'wait' for shared_futures, but that's it.
that's what the non-allocating future does
My suggestion is to convince Vicente to implement such functionality in Boost.Thread.
but Niall has already done the job in boost.monad