MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / set_value

Function set_value

extern/boost/boost/thread/future.hpp:2374–2384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2372#if defined BOOST_NO_CXX11_RVALUE_REFERENCES
2373 template <class TR>
2374 typename boost::enable_if_c<is_copy_constructible<TR>::value && is_same<R, TR>::value, void>::type
2375 set_value(TR const & r)
2376 {
2377 lazy_init();
2378 boost::unique_lock<boost::mutex> lock(future_->mutex);
2379 if(future_->done)
2380 {
2381 boost::throw_exception(promise_already_satisfied());
2382 }
2383 future_->mark_finished_with_result_internal(r, lock);
2384 }
2385#else
2386 void set_value(source_reference_type r)
2387 {

Callers

nothing calls this directly

Calls 4

lazy_initFunction · 0.85
throw_exceptionFunction · 0.50
moveFunction · 0.50

Tested by

no test coverage detected