$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [xpressive] is regex_match threadsafe?
From: Eric Niebler (eric_at_[hidden])
Date: 2009-03-18 10:58:45
Ovanes Markarian wrote:
> Sergey Skorokhodov wrote:
>>
>> Is it safe to call regex_match with the same cregex|sregex object
>> from different threads? Or should each thread use its own
>> cregex|sregex object?
>
> I see in the docs that regex param is passed as a reference to the
> const object, therefore calling regex_match from different threads is
> thread safe for regex (cregex|sregex) object instances.
Yes, that's correct. regex objects can be used from multiple threads.
-- Eric Niebler BoostPro Computing http://www.boostpro.com