Scroom  0.14
B< R > Class Template Reference
Collaboration diagram for B< R >:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< B< R > >
 

Public Member Functions

 B (Semaphore *s_, R result_)
 
operator() ()
 

Static Public Member Functions

static Ptr create (Semaphore *s, R result)
 

Private Attributes

Semaphores
 
result
 

Member Typedef Documentation

◆ Ptr

template<typename R >
using B< R >::Ptr = boost::shared_ptr<B<R> >

Constructor & Destructor Documentation

◆ B()

template<typename R >
B< R >::B ( Semaphore s_,
result_ 
)
inline
63  : s(s_)
64  , result(result_)
65  {
66  }

Member Function Documentation

◆ create()

template<typename R >
static Ptr B< R >::create ( Semaphore s,
result 
)
inlinestatic
74 { return Ptr(new B(s, result)); }

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

◆ operator()()

template<typename R >
R B< R >::operator() ( )
inline
69  {
70  s->V();
71  return result;
72  }
Here is the call graph for this function:

Member Data Documentation

◆ result

template<typename R >
R B< R >::result
private

◆ s

template<typename R >
Semaphore* B< R >::s
private

The documentation for this class was generated from the following file:
B::Ptr
boost::shared_ptr< B< R > > Ptr
Definition: threadpool-tests.cc:60
B::result
R result
Definition: threadpool-tests.cc:57
Scroom::Semaphore::V
void V()
Definition: semaphore.hh:77
B::B
B(Semaphore *s_, R result_)
Definition: threadpool-tests.cc:62
B::s
Semaphore * s
Definition: threadpool-tests.cc:56