[Insight-users] Getting the thread's ID

Aviv Hurvitz avivh at cs.huji.ac.il
Mon Jan 22 11:46:41 EST 2007


Hi all,

I wrote a Transform class that's doing a large calculation in
Transform::TransformPoint().
I want to cache the values in the calculation. The problem is, this
transform is shared by multiple threads. So I want to save the cached value
in several instances, one for each thread.

If I had the thread's id, I could do this association. Is there any way to
get the currently running thread's ID?

Thanks.

- Aviv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070122/4735610d/attachment.htm


More information about the Insight-users mailing list