Scroom  0.14
helpers.hh File Reference
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include <scroom/semaphore.hh>
#include <scroom/threadpool.hh>
Include dependency graph for helpers.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

boost::function< void()> pass (Semaphore *s)
 
boost::function< void()> clear (Semaphore *s)
 
boost::function< void()> destroy (boost::shared_ptr< void > p)
 

Function Documentation

◆ clear()

boost::function<void()> clear ( Semaphore s)
29 { return boost::bind(clearImpl, s); }

Referenced by BOOST_AUTO_TEST_CASE(), and has_at_least_n_threads().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy()

boost::function<void()> destroy ( boost::shared_ptr< void >  p)
31 { return boost::bind(destroyImpl, std::move(p)); }

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pass()

boost::function<void()> pass ( Semaphore s)
27 { return boost::bind(passImpl, s); }

Referenced by BOOST_AUTO_TEST_CASE(), and has_at_least_n_threads().

Here is the call graph for this function:
Here is the caller graph for this function:
anonymous_namespace{helpers.cc}::clearImpl
void clearImpl(Semaphore *s)
Definition: helpers.cc:20
anonymous_namespace{helpers.cc}::destroyImpl
void destroyImpl(boost::shared_ptr< void > &p)
Definition: helpers.cc:22
anonymous_namespace{helpers.cc}::passImpl
void passImpl(Semaphore *s)
Definition: helpers.cc:18