[Insight-developers] itkWarningMacro not thread safe?

Williams, Norman K norman-k-williams at uiowa.edu
Wed May 2 12:38:41 EDT 2012


I was trying to chase down an intermittent bug in one of our programs,
BRAINSTransformConvert.

Without going into my particular issue too much, the problem is that
BSplineDeformableTransform::TransformPoint prints out an warning message
using itkWarningMacro, and the underlying print mechanism --
itk::OutputWindow -- is apparently not thread safe.

I logged a Jira ticket about it and will submit a patch
https://itk.icts.uiowa.edu/jira/secure/EditIssue!default.jspa?id=18327

My question is this: Is it reasonable to expect that itkWarningMacro (and
behind the scenes itk::OutputWindow) be callable from a multithreaded
filter?  If so, could itk::OutputWindow be made thread-safe?

--
Kent Williams norman-k-williams at uiowa.edu






________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list