Is there a way to identify threadId (or some other unique identifier) when executing a function within peach? It will be useful for debugging.
Aaron Davies wrote a simple shared lib around the gettid call in linux, which provides the current thread id. The code and example usage is available in the contributed code section of code.kx.com (see here)
If you're running on windows, should be straight forward to modify to work with GetCurrentThreadId
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With