Use _lwp_self() in THREADSilentGetCurrentThreadId() for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 12 Apr 2016 00:26:54 +0000 (02:26 +0200)
committerKamil Rytarowski <n54@gmx.com>
Tue, 12 Apr 2016 00:26:54 +0000 (02:26 +0200)
commitd0c437f6b775042abf8ede0d0da232df4a04e3fb
tree12323596e431fe1518b23f2ce5e804e458aa652c
parent0f31e8820a17350089544d278e717d2f4411adf1
Use _lwp_self() in THREADSilentGetCurrentThreadId() for NetBSD

The _lwp_self() call returns the LWP ID of the calling LWP.
It requires <lwp.h> on NetBSD.

Commit migrated from https://github.com/dotnet/coreclr/commit/67d03ca438bf8327b82655669d616d1aa7ad8541
src/coreclr/src/pal/src/include/pal/thread.hpp