HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
spin_pause.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License.
3
4
#pragma once
5
6
#if defined(_M_AMD64)
7
#include <intrin.h>
8
#endif
9
10
#if defined(__x86_64__)
11
#include <xmmintrin.h>
12
#endif
13
14
namespace
onnxruntime {
15
16
namespace
concurrency {
17
18
// Intrinsic to use in spin-loops
19
20
inline
void
SpinPause
() {
21
#if defined(_M_AMD64) || defined(__x86_64__)
22
_mm_pause();
23
#endif
24
}
25
26
}
// namespace concurrency
27
28
}
// namespace onnxruntime
onnxruntime::concurrency::SpinPause
void SpinPause()
Definition:
spin_pause.h:20
onnxruntime
core
common
spin_pause.h
Generated on Tue Dec 10 2024 02:42:04 for HDK by
1.8.6