Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
B< R > Class Template Reference
Collaboration diagram for B< R >:
Collaboration graph

Public Types

using Ptr = std::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 = std::shared_ptr<B<R> >

Constructor & Destructor Documentation

◆ B()

template<typename R >
B< R >::B ( Semaphore s_,
result_ 
)
inline
64 : s(s_)
65 , result(result_)
66 {
67 }
R result
Definition threadpool-tests.cc:58
Semaphore * s
Definition threadpool-tests.cc:57

Member Function Documentation

◆ create()

template<typename R >
static Ptr B< R >::create ( Semaphore s,
result 
)
inlinestatic
75{ return Ptr(new B(s, result)); }
Definition threadpool-tests.cc:55
std::shared_ptr< B< R > > Ptr
Definition threadpool-tests.cc:61

◆ operator()()

template<typename R >
R B< R >::operator() ( )
inline
70 {
71 s->V();
72 return result;
73 }
void V()
Definition semaphore.hh:77
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: