[Insight-developers] thread safety of c++ new operator

Tri Ngo ngotm at mit.edu
Sun Apr 1 10:32:08 EDT 2007


Hi,
I have a multithreaded filter that is crashing because two threads are
simultaneously calling the new operator.  Since the new operator is
used throughout itk classes, especially in the constructor, I was
wondering what is a good method of handling this problem.  Otherwise
it will be difficult to allocate any non-primitive variables in
threads.

Thanks,
Tri


More information about the Insight-developers mailing list