I have tried some experiments on c++11 regex using multithread and I think it's not multi thread safe library.
I just can't explain more. Please help me :(
I have tried some experiments on c++11 regex using multithread and I think it's not multi thread safe library.
I just can't explain more. Please help me :(
Calling const
member functions of a regex
is a thread safe operation. Calling non-const
member functions is not guaranteed to be thread safe.
Considering the only way to make things like that thread safe would be to enter a lock, if you want that to be thread safe, then just protect the regex
with a lock.