On 04/04/2013 08:48 AM, Bradley Lowekamp wrote:
> why this static "HasBeenRegistered" variable was used instead
> of a mechanism which gives each factory a unique ID, and
> ensuring it only get's registered in the factory one.

It was written assuming that global variables are really global
and exist only once in a process.  Windows plugins without fully
shared ITK libraries make that impossible but the use case was
not considered at the time.  We just had to get distributed I/O
factory registration working during modularization.  If you have
a better solution then go for it.

-Brad K
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

Reply via email to