From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-08-11 15:46:30
Paul Vernaza schrieb:
> Very quick question: is ublas thread-safe? I've skimmed the source,
> and it looks like it might be, except maybe for one static member
> variable in hermitian.hpp that may or may not be ok. Whatever the
> answer, I suggest that this be added to the documentation.
There are no automatic write locks. This may cause problems if threads
concurrently modify values, resize the matrix or insert new non-zeroes
into a sparse matrix. If synchronization is needed than you must wrap
ublas matrices. Read only access is, of course, thread safe.