VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNvQueue.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 #ifndef DtNvQueue_H_
12 #define DtNvQueue_H_
13 
15 #include <stdlib.h>
16 
17 namespace makVrv
18 {
21  template<class T>
22  class DtNvQueue
23  {
24  public:
26  DtNvQueue();
27 
29  virtual ~DtNvQueue();
30 
32  void deinitialize();
33 
35  bool initialize(T *pItems, unsigned int uSize);
36 
38  T* getAvailable();
39 
41  T* getPending();
42 
44  unsigned int getSize();
45 
46  protected:
47 
49  T * * myBuffer;
50 
52  unsigned int mySize;
53 
55  unsigned int myPendingCount;
56 
58  unsigned int myAvailableIdx;
59 
61  unsigned int myPendingIdx;
62  };
63 }
64 #define DtNvQueue_INL_
65 #include "DtNvQueue.inl"
66 #undef DtNvQueue_INL_
67 
68 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)