This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] mutex vs. cstdatomic


> With a straight up swap of bool for atomic_bool, I'm seeing a lot of
> these:
> 
> atomic_2.h:312: _ITp
> std::__atomic2::__atomic_base<_IntTp>::load(std::memory_order) const
> volatile [with _ITp = bool]:
>  Assertion `__m == memory_order_release' failed.

This was intended, as memory_order_release doesn't meet the
specified requirements for this function. 

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]