Peter Dimov
6c181a0707
When BOOST_SP_REPORT_IMPLEMENTATION is defined, report what platform-specific atomic implementation is used
2020-06-02 20:51:38 +03:00
Peter Dimov
dc6c76d7e9
Move lightweight_thread.hpp to smart_ptr/detail
2020-06-02 17:55:15 +03:00
Peter Dimov
4b724ab3f8
Add mixed shared_count/weak_count operator== overloads to avoid refcount manipulation
2020-05-31 22:07:36 +03:00
Peter Dimov
62b0e5cdf4
Add mixed shared_count/weak_count operator< overloads to avoid refcount manipulation
2020-05-31 21:12:12 +03:00
Peter Dimov
1e5df9d551
Merge pull request #79 from EugeneZelenko/use-boost-override
...
Fix Clang-tidy modernize-use-override warnings.
2020-05-19 01:58:20 +03:00
Eugene Zelenko
2af343a2cb
Fix Clang-tidy modernize-use-override warnings.
2020-05-12 18:01:55 -07:00
Edward Diener
c6b3700ef1
Merge branch 'develop' of https://github.com/boostorg/smart_ptr into cppbuilder
2020-05-06 11:32:12 -04:00
Edward Diener
2a93d30e73
Change conditions to be the same.
2020-05-06 11:31:57 -04:00
Peter Dimov
066b398114
Disable -Wc11-extensions in sp_counted_base_clang.hpp
2020-04-27 00:50:15 +03:00
Edward Diener
df06c324a7
Merge branch 'develop' of https://github.com/boostorg/smart_ptr into cppbuilder
2020-04-19 02:49:06 -04:00
Peter Dimov
a2732e207a
Add BOOST_OVERRIDE to sp_counted_impl.hpp
2020-04-14 00:55:52 +03:00
Peter Dimov
2320dafc03
Add BOOST_OVERRIDE to bad_weak_ptr.hpp and local_counted_base.hpp
2020-04-14 00:42:57 +03:00
Edward Diener
cd562eb053
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-03-26 17:17:22 -04:00
Peter Dimov
169c0cd52a
Remove lwm_nop.hpp; add lwm_std_mutex.hpp
2020-01-08 03:57:13 +02:00
Peter Dimov
7d70691a16
Remove Windows Runtime workaround from yield_k.hpp; it's no longer relevant, Sleep is available
2020-01-08 03:09:11 +02:00
Peter Dimov
90c27d7cfa
Remove Windows Runtime workaround from lwm_win32_cs.hpp; it's no longer relevant, InitializeCriticalSection is available
2020-01-08 02:55:14 +02:00
Glen Fernandes
43d1fe12c5
Include lightweight_test from core and workaround from config
2020-01-01 08:31:25 -05:00
Carl Bussey
876d40a9ab
atomic_count_std_atomic: static_cast v to std::int_least32_t
...
* fix implicit conversion warning
2019-06-18 11:44:17 +02:00
Glen Fernandes
872bf10347
Move construct and destroy from Smart_Ptr to Core
2019-05-03 17:39:25 -04:00
Glen Fernandes
1298c2e8e5
Include sp_noexcept.hpp in sp_construct.hpp
2019-05-02 18:00:53 -04:00
Glen Fernandes
d593061b15
Move construct and destroy utilities to common header
2019-05-02 09:48:45 -04:00
Peter Dimov
a571b3a250
Only include core/typeinfo.hpp when needed
2019-04-22 06:07:36 +03:00
Peter Dimov
e306b30dcf
Use a private detail/sp_typeinfo header instead of the deprecated Core one
2019-04-22 05:25:07 +03:00
Peter Dimov
aa1341a6a2
Add BOOST_SP_NOEXCEPT to sp_counted_base_nt.hpp
2019-01-28 21:24:09 +02:00
Peter Dimov
053779f3ee
Add BOOST_SP_NOEXCEPT to sp_counted_base_clang.hpp
2019-01-28 20:52:28 +02:00
Peter Dimov
51d8167fbf
Add more BOOST_SP_NOEXCEPT
2019-01-28 18:46:39 +02:00
Nikita Kniazev
eac6411867
Do not include the whole Predef for a single macro
2018-12-28 03:03:02 +03:00
Peter Dimov
2932ca4203
Change sp_counted_base_nt/_pt to use boost::int_least32_t instead of long (which may be 64 bit)
2018-12-23 01:54:36 +02:00
Glen Fernandes
29a08cdff6
Use BOOST_SYMBOL_VISIBLE with local_counted_base and children
2018-09-19 13:50:13 -04:00
Peter Dimov
6d3af760f6
Generously dispense BOOST_SYMBOL_VISIBLE
2018-09-18 03:18:23 +03:00
Peter Dimov
4eb53db537
Use intrin.h under clang-cl
2018-08-12 01:26:59 +03:00
Peter Dimov
8563fc5c4e
Add tests that include <windows.h>
2018-03-11 23:00:50 +02:00
Peter Dimov
67fab5c9ec
Clang x64 warns that __stdcall is ignored, so don't use it there
2018-03-08 06:53:28 +02:00
Peter Dimov
f16fbdce26
Fix sp_interlocked on Cygwin 64
2018-03-08 05:15:49 +02:00
Peter Dimov
c3b3835a58
Mingw doesn't have _RTL_CRITICAL_SECTION
2018-03-08 03:34:00 +02:00
Peter Dimov
937a3e0e93
Remove tabs
2018-01-23 06:29:17 +02:00
YunQiang Su
4252ed31de
disable .set mips2 for mips release r6
...
MIPS r6 changed the encoding for `ll' instruction,
if we `.set mips2', it will generate the old encoding for `ll'.
So here we disable it for r6.
2017-12-31 14:14:11 +08:00
Peter Dimov
868a870a59
Fix lightweight_mutex w/ BOOST_USE_WINDOWS_H
2017-09-01 13:25:19 +03:00
Benjamin Worpitz
966786e7f9
fix compilation for nvcc+clang
...
nvcc seems to use the host compiler for preprocessing the source for the device and host compilation.
When compiling the host code with the host compiler (clang), `__builtin_assume` is detected correctly and is also available during compilation.
When compiling the device code with nvcc, this builtin function is not available.
2017-08-28 08:12:48 +02:00
Peter Dimov
13e73d6a78
Do not use UINT_MAX to avoid -Wmicrosoft-enum-value from Clang
2017-06-27 16:23:18 +03:00
Peter Dimov
20a517cc3d
Clang/C2 doesn't have _mm_pause
2017-06-27 15:41:56 +03:00
Peter Dimov
0adb1fb212
Add shared_count constructor taking sp_counted_base*
2017-06-22 15:24:49 +03:00
Peter Dimov
f901988e57
Store shared_count in local_counted_base, not shared_ptr
2017-06-20 21:38:03 +03:00
Peter Dimov
fb17bf685e
Add more tests; fix errors
2017-06-20 20:38:26 +03:00
Peter Dimov
6e5a382b6b
Start work on get_deleter for local_shared_ptr
2017-06-20 19:01:16 +03:00
Peter Dimov
2b5869882a
Optimize make_local_shared to use a single allocation
2017-06-20 04:27:45 +03:00
Peter Dimov
0e78e219f5
Make default constructors constexpr
2017-06-18 02:43:20 +03:00
Peter Dimov
7bd389c95e
Merge branch 'develop' into feature/local_shared_ptr
2017-06-17 00:15:39 +03:00
Peter Dimov
1cae5c5696
Fix documentation links in headers
2017-06-17 00:13:21 +03:00
Peter Dimov
4dda1b5fbb
Add lsp_array_* tests
2017-06-13 18:03:01 +03:00