Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I identify the thread-id in peach function in Q

Tags:

kdb+

Is there a way to identify threadId (or some other unique identifier) when executing a function within peach? It will be useful for debugging.

like image 551
user5637363 Avatar asked Dec 14 '25 18:12

user5637363


1 Answers

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

like image 184
MdSalih Avatar answered Dec 18 '25 14:12

MdSalih



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!