refactoring: orc can use getThreadId() (#19123)

* refactoring: orc can use getThreadId()

* progress
This commit is contained in:
Andreas Rumpf 2021-11-11 19:07:08 +01:00 • committed by GitHub
commit cde83d90aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 110 additions and 96 deletions

View file

@ -29,9 +29,6 @@ when defined(windows):
proc terminateThread(hThread: SysThread, dwExitCode: int32): int32 {.
stdcall, dynlib: "kernel32", importc: "TerminateThread".}
proc getCurrentThreadId(): int32 {.
stdcall, dynlib: "kernel32", importc: "GetCurrentThreadId".}
type
ThreadVarSlot = distinct int32