#include <memory>
#include <boost/function.hpp>
#include <scroom/semaphore.hh>
#include <scroom/threadpool.hh>
Go to the source code of this file.
◆ clear()
29{
30 return [
s] {
s->V(); };
31}
◆ destroy() [1/2]
template<typename T >
| boost::function< void()> destroy |
( |
std::shared_ptr< T > & |
p | ) |
|
25{
26 std::shared_ptr<void> pv = std::move(
p);
28}
PresentationInterfaceStub::Ptr const p
Definition determine-size-test.cc:172
boost::function< void()> destroy(std::shared_ptr< void > &p)
Definition helpers.cc:33
◆ destroy() [2/2]
| boost::function< void()> destroy |
( |
std::shared_ptr< void > & |
p | ) |
|
34{
35 return [
p = std::move(
p)]()
mutable {
p.reset(); };
36}
Referenced by destroy().
◆ pass()