VR-Forces 4.1.1 Class Documentation
DtLocklessQueue.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vector>
13 
14 namespace makVrv
15 {
20  template <class T>
22  {
23  public:
24 
26  DtLocklessQueue(int size);
27 
30 
32  void push(T newElement);
33 
35  T pop();
36 
39  bool okToPush();
40 
42  int count();
43 
44  private:
45 
48 
50  DtLocklessQueue( const DtLocklessQueue& orig);
51 
54 
55  protected:
56  std::vector<T> myElements;
59  };
60 }
61 
62 #define DtLocklessQueue_INL_
63 #include <vrvVideoStream/DtLocklessQueue.inl>
64 #undef DtLocklessQueue_INL_

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)