[Boost-bugs] [Boost C++ Libraries] #12486: system_error_code for thread safe

Subject: [Boost-bugs] [Boost C++ Libraries] #12486: system_error_code for thread safe
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-27 10:30:47

#12486: system_error_code for thread safe
 Reporter: lzwyg <lzwyg@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.61.0
 Severity: Problem | Keywords:
          error_info info(system_error_code());
          if(info.get_error_code() != already_exists_error){
             throw interprocess_exception(info);

 If the directory exists, get last error is already_exists_error,
 but in the multi thread environment, last_error will be rewritten by
 another thread.

 Whether this can be improved by compiler options?

 test environment: MAC OS

Ticket URL: <https://svn.boost.org/trac/boost/ticket/12486>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC