Commit Graph
2 Commits
Author SHA1 Message Date
Koundinya Veluri cb26003e3b Expose ReaderWriterLock (dotnet/corefx#13264)
Expose ReaderWriterLock

- Rewrote ReaderWriterLock in C# from the original code, exposed it, and added tests
- Original code:
  - https://github.com/dotnet/coreclr/blob/master/src/vm/rwlock.h
  - https://github.com/dotnet/coreclr/blob/master/src/vm/rwlock.cpp

Fixes dotnet/corefx#11634

Commit migrated from https://github.com/dotnet/corefx/commit/04fb6d443a9830cb637c7348d49e1271a5deeca9
2016-11-09 10:45:26 -08:00
Koundinya Veluri e2fd9d8fba Expose some Thread members (dotnet/corefx#12827)
* Expose some Thread members

- Implemented Thread type in CoreFX, so with this, Thread will no longer be type-forwarded to the runtime. It instead forwards selectively to the runtime through a RuntimeThread instance for functionality is currently strongly tied with the runtime. Some of this functionality may further be moved to CoreFX later.
- S.Threading.Thread compiles against S.Private.CoreLib of the runtime for access to RuntimeThread, and due to type conflicts between CoreLib and CoreFX assemblies, uses project references to the CoreFX implementation projects and aliases where necessary to reference the intended public type

Related to dotnet/corefx#11632, dotnet/corefx#11638

Commit migrated from https://github.com/dotnet/corefx/commit/5cfbd066343338c696b4a5345c7bd188c87b0096
2016-10-26 21:43:16 -07:00