[netcore] Implement Thread.CurrentOSThreadId (mono/mono#15748)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 19 Jul 2019 17:22:50 +0000 (13:22 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2019 17:22:50 +0000 (13:22 -0400)
commit3823c58def7367c6bc4910111ae4b55169f08b9a
tree8d8834871a57ec64c6532e7a2253eabdcc8a1060
parentf552daeda8cebfbab4ca1995544b913cf79400dd
[netcore] Implement Thread.CurrentOSThreadId (mono/mono#15748)

* [netcore] Implement Thread.CurrentOSThreadId

* Add comment explaining differences with mono_native_thread_id_get

* Add haiku implementation

* Attempt to fix linux builds

* Add MonoError parameter to icall

Commit migrated from https://github.com/mono/mono/commit/d685b72cb2c37ab73a8470b074a7557e22ce5b00
14 files changed:
src/mono/mono/metadata/icall-def-netcore.h
src/mono/mono/metadata/threads.c
src/mono/mono/utils/mono-threads-aix.c
src/mono/mono/utils/mono-threads-android.c
src/mono/mono/utils/mono-threads-freebsd.c
src/mono/mono/utils/mono-threads-haiku.c
src/mono/mono/utils/mono-threads-linux.c
src/mono/mono/utils/mono-threads-mach.c
src/mono/mono/utils/mono-threads-netbsd.c
src/mono/mono/utils/mono-threads-openbsd.c
src/mono/mono/utils/mono-threads-wasm.c
src/mono/mono/utils/mono-threads-windows.c
src/mono/mono/utils/mono-threads.h
src/mono/netcore/System.Private.CoreLib/src/System.Threading/Thread.cs