Add a basic lockable class that avoids using concrt on Windows (dotnet/core-setup...
authorElinor Fung <47805090+elinor-fung@users.noreply.github.com>
Thu, 9 May 2019 23:21:50 +0000 (16:21 -0700)
committerGitHub <noreply@github.com>
Thu, 9 May 2019 23:21:50 +0000 (16:21 -0700)
commit2075e0665d2e8b8dd70c1ce175364dac077eec5f
tree9e08a99e2399f09ea1f3f829de42dec5081a96e9
parent8576bf9e2db3a5b97cbde38cf5b8bcb16e93c375
Add a basic lockable class that avoids using concrt on Windows (dotnet/core-setup#6368)

- Lockable class directly uses CRITICAL_SECTION on Windows, typedef-ed to be std::mutex on non-Windows
- Switch tracing to use new lockable class so that concrt is not pulled in for every component

Commit migrated from https://github.com/dotnet/core-setup/commit/0caf046824bd0512b8dd17c522e23064004f677b
src/installer/corehost/common/pal.h
src/installer/corehost/common/pal.windows.cpp
src/installer/corehost/common/trace.cpp