[Insight-users] Getting the thread's ID
Luis Ibanez
luis.ibanez at kitware.com
Wed Jan 24 10:17:04 EST 2007
HI Aviv,
Please read the Multi-Threading Tutorial from the ITK Advanced course:
http://www.na-mic.org/Wiki/images/2/24/Insight-MultiThreading.ppt
It should answer your questions regarding the use of
the itk::MultiThreader class.
Regards,
Luis
--------------------------
Aviv Hurvitz wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list