AGXDynamics
2.35.0.3
SyncTag.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. 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
24
DOXYGEN_START_INTERNAL_BLOCK
()
25
26
#ifdef _WIN32
27
#ifdef ERROR
28
#undef ERROR
29
#endif
30
#endif
31
32
namespace
agx
33
{
34
AGX_DECLARE_POINTER_TYPES
(SyncTag);
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
61
DOXYGEN_END_INTERNAL_BLOCK
()
AGXCORE_EXPORT
#define AGXCORE_EXPORT
Referenced.h
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
macros.h:97
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
macros.h:96
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::operator<<
std::ostream & operator<<(std::ostream &stream, const AtomicValueT< T > &value)
Definition:
AtomicValue.h:109
Integer.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
include
agx
SyncTag.h
Generated on Fri Feb 10 2023 14:06:18 for AGXDynamics by
1.8.17