VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)