onnxruntime/tools
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
..
android_custom_build Update Android NDK version to 27.0.12077973. (#21989) 2024-09-05 17:57:24 -07:00
ci_build Remove nsync (#20413) 2024-10-21 15:32:14 -07:00
doc Update ruff and clang-format versions (#21479) 2024-07-24 11:50:11 -07:00
nuget [DML EP] Update DML to 1.15.2 (#22247) 2024-09-27 13:20:29 -07:00
perf_view fixed #16873 (#16932) 2023-09-26 09:57:01 -07:00
python Migrate Android Java E2E tests from App Center to Browserstack (#22117) 2024-10-02 15:04:58 -07:00
scripts Fix a build issue: /MP was not enabled correctly (#19190) 2024-01-29 12:45:38 -08:00