Ask Your Question
0

Is Mat thread-safe ?

asked 2015-02-01 09:51:05 -0500

Dionysos gravatar image

Two of my threads need to read/write into the same Mat declared as global variable. Is Mat thread-safe or should I take care of it ? What can you recommend me ? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-01 10:42:01 -0500

No to the threadsafe since it uses smartpointers and yes you should take care of it yourself with a mutex structure!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-02-01 09:51:05 -0500

Seen: 1,142 times

Last updated: Feb 01 '15