|
Ublas : |
Subject: [ublas] vector / matrix thread write access
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-08-30 09:54:12
Hi,
I use a ublas::vector for caching some data between threads. One of my
threads sould write data into a position of the vector and the other
thread should be read the data. In some cases more than one thread can
write to the vector on the same position. Every thread that sets the
data creates the same data, so it is irrelevant which thread writes.
Are ublas::matrix and ublas::vector for reading and writing on the
same indexposition thread-safe?
If they are not, how can I make them thread-safe?
Thanks
Phil