onnxruntime/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
cpuid_arch_definition.h
cpuid_info.cc Update comment in cpuid_info.cc (#20974) 2024-06-10 08:52:38 -05:00
cpuid_info.h Fix typos - 1st Wave (#21278) 2024-07-11 13:35:08 +08:00
cpuid_uarch.cc MLAS AArch64 quantized int4 Gemm kernel (#18031) 2023-11-15 09:31:54 -08:00
cpuid_uarch.h
denormal.cc
flatbuffers.h [On-Device-Training] Upgrade Flatbuffers to Support 2GB+ Checkpoints. (#19770) 2024-03-14 16:36:24 -07:00
helper.cc Fix typos - 1st Wave (#21278) 2024-07-11 13:35:08 +08:00
path_string.h Log out ORT session options (#16259) 2023-12-11 17:56:27 -08:00
path_utils.h
profiler.cc Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
profiler.h Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
profiler_common.cc
safeint.h
status.cc Fix typos according to reviewdog report. (#21335) 2024-07-22 13:37:32 -07:00
string_utils.h Define recomputable op list with domain/opset (#19722) 2024-03-07 09:12:12 +08:00
threadpool.cc Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
type_list.h
type_set_utils.h
type_utils.h
utf8_util.h Reduce heap contention in Tokenizer (#20196) 2024-04-10 12:12:17 -07:00