Replaced use of critical section with runtime initialization.
vtkPolyData class uses a class variable that it was initializing lazily - which required a mutex to do in a thread safe way. Since mutexes are expensive, I replaced this with a run-time initialization, which is thread safe and much less expensive. Change-Id: I34bcee4b4e5f105a00ebd87129a5debff0170705
Showing with 23 additions and 39 deletions