opencv thread safe?
I still have to figure out:
which openCV functions are pthread-safe?!
By pthread-safe I mean that
(1) opencv functions can be called by different threads on different
data with no unexpected result, with no need of mutex protection. This
imply opencv functions are fully reentrant (using only stack variables)
(2) opencv functions can be called by different threads on the same
data provided the ordinary use of pthread_mutex_lock()/trylock()/unlock
A specific example: what to do if I wanna call cvGetTickCount() by
different threads? Do I have to use mutexes??!! (that would spoil the
Doesn't the manual page tell you?
strangely enough I do not think it does
Originally Posted by Salem
In the absense of
a) the manual telling you that it's thread safe
b) you reading the source code to determine if it's thread safe,
Then it's best to assume that it isn't thread safe at all.