[Insight-users] Mutexes

Brady McCary brady.mccary+ITK at gmail.com
Fri May 22 10:33:01 EDT 2009


insight-users,

How expensive is it to create mutexes? For example, I have an image
processing problem where it would be nice to be able to lock on a
per-pixel basis, perhaps something like:

typename itk::Image< MutexType, ImageDimension > MutexImageType;

ITK's threading mechanism is actually a wrapper around several (at
least three) different threading libraries which exist on different
platforms, so the answer to my question probably depends on my
platform. I am running a recent linux on x86. However, for posterity
it would be nice if someone could answer this question for most of the
common platforms.

Thanks,

Brady


More information about the Insight-users mailing list