proxygen
countdownsingle Struct Reference

Public Member Functions

 countdownsingle (int &c)
 
template<class ExecutorRef >
void operator() (ExecutorRef exec)
 
 countdownsingle (int &c)
 
template<class ExecutorRef >
void operator() (ExecutorRef exec)
 

Public Attributes

int * counter
 

Detailed Description

Definition at line 45 of file NewThreadTest.cpp.

Constructor & Destructor Documentation

countdownsingle::countdownsingle ( int &  c)
inlineexplicit

Definition at line 46 of file NewThreadTest.cpp.

46 : counter(&c) {}
char c
countdownsingle::countdownsingle ( int &  c)
inlineexplicit

Definition at line 45 of file TrampolineTest.cpp.

References counter.

45 : counter(&c) {}
char c

Member Function Documentation

template<class ExecutorRef >
void countdownsingle::operator() ( ExecutorRef  exec)
inline

Definition at line 50 of file TrampolineTest.cpp.

References submit.

50  {
51  if (--*counter > 0) {
52  exec | op::submit(*this);
53  }
54  }
template<class ExecutorRef >
void countdownsingle::operator() ( ExecutorRef  exec)
inline

Definition at line 51 of file NewThreadTest.cpp.

References submit.

51  {
52  if (--*counter > 0) {
53  exec | op::submit(*this);
54  }
55  }

Member Data Documentation

int * countdownsingle::counter

Definition at line 48 of file NewThreadTest.cpp.


The documentation for this struct was generated from the following files: