onnxruntime/include/onnxruntime/core/common
Changming Sun 88676e62b9
Remove nsync (#20413)
### Description
1. Remove the onnxruntime::OrtMutex class and replace it with
~absl::Mutex~ std::mutex.
2. After this change, most source files will not include <Windows.h>
indirectly.


### Motivation and Context
To reduce the number of deps we have, and address some Github issues
that are related to build ONNX Runtime from source.
In PR #3000 , I added a custom implementation of std::mutex . It was
mainly because at that time std::mutex's default constructor was not
trivial on Windows. If you had such a mutex as a global var, it could
not be initialized at compile time. Then VC++ team fixed this issue.
Therefore we don't need this custom implementation anymore.

This PR also removes nsync. I ran several models tests on Linux. I
didn't see any perf difference.
This PR also reverts PR #21005 , which is no longer needed since conda
has updated its msvc runtime DLL.

This PR unblocks #22173 and resolves #22092 . We have a lot of open
issues with nsync. This PR can resolve all of them.
2024-10-21 15:32:14 -07:00
..
logging Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
basic_types.h
code_location.h
common.h
const_pointer_container.h
denormal.h
eigen_common_wrapper.h Get build working on Xcode 16 (#22168) 2024-09-24 08:33:03 -07:00
exceptions.h Update ruff and clang-format versions (#21479) 2024-07-24 11:50:11 -07:00
gpu_profiler_common.h
hash_combine.h
inlined_containers.h
inlined_containers_fwd.h
make_string.h revert forceinline for MakeString (#21943) 2024-09-02 19:01:08 -07:00
narrow.h Prevent GSL_SUPPRESS arguments from being modified by clang-format (#17242) 2023-08-22 18:26:53 -07:00
optional.h
parse_string.h
profiler_common.h
span_utils.h Remove core/common/gsl.h (#20894) 2024-07-08 18:09:39 -07:00
spin_pause.h
status.h remove gsl to make status.h independent from gsl (#17402) 2023-09-13 21:47:43 -07:00
string_helper.h