RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
locklessQueue.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vector>
13 
14 namespace makRadarFx
15 {
19 template <class T>
21 {
22  public:
23 
25  DtLocklessQueue(int size);
26 
29 
31  void push(T newElement);
32 
34  T pop();
35 
38  bool okToPush();
39 
41  int count();
42 
43  private:
44 
47 
49  DtLocklessQueue(const DtLocklessQueue& orig);
50 
53 
54  protected:
55  std::vector<T> myElements;
58 };
59 }
60 
61 #define DtLocklessQueue_INL_
62 #include "locklessQueue.inl"
63 #undef DtLocklessQueue_INL_

Document ID: 1.0
Copyright © 2015 VT MÄK Inc. All Rights Reserved (www.mak.com)