CARMA C++
CorrelatorDataPool.h
Go to the documentation of this file.
1 // $Id: CorrelatorDataPool.h,v 1.2 2007/05/08 23:20:42 abeard Exp $
2 
3 #ifndef CARMA_CORRELATOR_LIB_CORRELATORDATAPOOL_H
4 #define CARMA_CORRELATOR_LIB_CORRELATORDATAPOOL_H
5 
6 #include <vector>
7 #include "carma/util/PthreadMutex.h"
9 
19 namespace carma {
20  namespace correlator {
21  namespace lib {
22 
23  class CorrelatorDataPool {
24  public:
25 
29  CorrelatorDataPool();
30 
34  virtual ~CorrelatorDataPool();
35 
41  CorrelatorData* getCorrelatorData();
42 
47  int getPoolSize();
48 
52  int getInUseCount();
53 
57  int getAvailableCount();
58 
59  private:
60  std::vector<carma::correlator::lib::CorrelatorData*> pool_;
62 
63  }; // End class CorrelatorDataPool
64 
65  } // End namespace lib
66  } // End namespace correlator
67 } // End namespace carma
68 
69 
70 
71 #endif // End #ifndef CARMA_CORRELATOR_LIB_CORRELATORDATAPOOL_H
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...
Definition: PthreadMutex.h:41