[Insight-users] thread-safe containers

Benjamin King king.benjamin at mh-hannover.de
Wed Jan 19 08:38:34 EST 2005


Hello,

I found out myself:

> Can anyone tell me, if different threads can safely append to a
> std::vector<T> and what I can do about it if they can't?
They can't, but I now use itk::SimpleMutexLock to protect container access.

cheers,
 Benjamin

-- 
Benjamin King
Institut für Medizinische Informatik
Medizinische Hochschule Hannover
Tel.: +49  511  532-2663


More information about the Insight-users mailing list