AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
SyncTag.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
32namespace 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
#define AGXCORE_EXPORT
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::ostream & operator<<(std::ostream &os, const agx::AddedMassInteraction::Matrix6x6 &m)