diff options
Diffstat (limited to 'tensorflow/core/platform/thread_annotations.h')
-rw-r--r-- | tensorflow/core/platform/thread_annotations.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/core/platform/thread_annotations.h b/tensorflow/core/platform/thread_annotations.h new file mode 100644 index 0000000000..cb8040eed6 --- /dev/null +++ b/tensorflow/core/platform/thread_annotations.h @@ -0,0 +1,14 @@ +#ifndef TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ +#define TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ + +#include "tensorflow/core/platform/port.h" + +#if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) +#include "base/thread_annotations.h" +#elif defined(PLATFORM_POSIX) || defined(PLATFORM_POSIX_ANDROID) +#include "tensorflow/core/platform/default/thread_annotations.h" +#else +#error Define the appropriate PLATFORM_<foo> macro for this platform +#endif + +#endif // TENSORFLOW_PLATFORM_THREAD_ANNOTATIONS_H_ |