Why atomic::is_lock_free() is not a constexpr and/or static function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Reading the implementation of the atomics, I have found that the
'is_lock_free()' method is not 'constexpr' nor even 'static', while
this method uses the 'bool __ atomic_is_lock_free()' builtin function,
the result of which is known in compile-time.
And here, in fact, the question is, why
'std::atomic<>::is_lock_free()' is not 'constexpr' and/or 'static'?


-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux