AGX Dynamics  2.37.2.0
SyncTag.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGX_SYNCTAG_H
18 #define AGX_SYNCTAG_H
19 
20 #include <agx/Integer.h>
21 #include <agx/Referenced.h>
22 #include <iosfwd>
23 
25 
26 #ifdef _WIN32
27 #ifdef ERROR
28 #undef ERROR
29 #endif
30 #endif
31 
32 namespace agx
33 {
35  class AGXCORE_EXPORT SyncTag : public Referenced
36  {
37  public:
38  enum Status
39  {
40  SYNC_TAG_ERROR = -1,
41  SYNC_TAG_RUNNING,
42  SYNC_TAG_COMPLETED
43  };
44 
45  public:
46  virtual Status wait() = 0;
47  virtual Status getStatus() = 0;
48  };
49 
50  /* Implementation */
51  inline std::ostream& operator << ( std::ostream& output, const SyncTag& tag)
52  {
53  output << &tag;
54  return output;
55  }
56 }
57 
58 
59 #endif /* _AGX_SYNCTAG_H_ */
60 
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::ostream & operator<<(std::ostream &os, const agx::AddedMassInteraction::Matrix6x6 &m)
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define AGXCORE_EXPORT
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97