Conversation
|
@miguelraz, FWIW, this is my (old) attempt to support Windows. |
| Int(@ccall kernel32.GetThreadId(thread_handle::THREAD_HANDLE)::DWORD) | ||
| end | ||
| get_current_threadid() = Int(@ccall kernel32.GetCurrentThreadId()::DWORD) | ||
| function get_threadids() |
There was a problem hiding this comment.
Did a lil' digging here finally @carstenbauer !
The querying_test.jl is failing because getcpuids() is non-deterministic. This function is, however, deterministic (although I don't know yet how to map these numbers to the specific core numbers).
My idea is then to make getcpuid() be defined as this function is + some handle mapping to get back the proper threadid's.
However, I remember that threadid() is no longer a recommended way to solve problems. Is that a blocker here? I'm not up to speed on how that could affect these changes.
There was a problem hiding this comment.
You can always use @threads :static for ... here and then threadid() is perfectly fine.
There was a problem hiding this comment.
BTW, this should probably be rebased, because it's somewhat old.
|
FWIW, after the revamp - which has just landed on the However, I do not plan to work on this at all because I don't care about it enough and, more importantly, don't have access to Windows machines. |
|
I also don't have access to Windows machines anymore 😢 |
Closes #15