Commit Graph

206 Commits

Author SHA1 Message Date
Tim Blechmann
fbea9be049
Merge pull request #50 from boostorg/develop
Merge 'develop' to 'master'
2019-05-02 19:14:50 +02:00
Tim Blechmann
7e23dac52d
Merge pull request #49 from yuvalif/fix_valgrind_uninitialized_error
fix issue #48. valgrind errors
2019-02-21 12:02:23 +08:00
Yuval Lifshitz
e1fd809494 revert back order of members
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-01-22 17:14:22 +02:00
Yuval Lifshitz
3d45c000b2 fix issue #48. valgrind errors
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-01-20 19:36:28 +02:00
Tim Blechmann
8314adce35
Merge pull request #46 from CromwellEnage/parameter_usage
Adjust to changes in Boost.Parameter
2019-01-06 13:54:03 +08:00
CromwellEnage
217f8dbacb Revert unnecessary changes 2019-01-04 11:21:02 -05:00
CromwellEnage
624d0053c7 Update .travis.yml
Update .yml scripts as per Peter Dimov's message announcing the merging of CMake into boostorg/develop.
2018-12-21 22:14:33 -05:00
CromwellEnage
38691fa3bc Fix coding style 2018-11-25 23:38:47 -05:00
CromwellEnage
cf3334a384 Fix coding style 2018-11-25 23:36:39 -05:00
CromwellEnage
86994a1b13 Use existing typedefs vice template reinstantiations 2018-11-23 09:47:18 -05:00
CromwellEnage
e6ae845920 Adjust to changes in Boost.Parameter
<boost/lockfree/policies.hpp>
* Change include statement to reflect the fact that the boost::parameter::template_keyword class template was moved to <boost/parameter/template_keyword.hpp>.

<boost/lockfree/policies.hpp>
* Use boost::mpl::has_key vice boost::lockfree::detail::has_arg.
2018-11-22 09:21:18 -05:00
Tim Blechmann
e075a281c5
Merge pull request #45 from LiangZhou9527/boost-lockfree-wrs-lzhou1
modify freelist_test.cpp/spsc_queue_stress_test.cpp/test_common.hpp to adapt VxWorks7
2018-11-12 18:58:03 +08:00
liang zhou
4ef74379c2 Why modify freelist_test.cpp and test_common.hpp :
In VxWorks Kernel, the re-schedule mechanism does not enable "round-robin" reschdule between the same priority tasks by default. So the case "stack_unbounded_stress_test" will lead to test case hang forever. Here's the details:

The test case creates 4 tasks as “Reader”, and then 4 tasks as “Writer”, all those 8 task has the same priority 220.
If the target has 2 cores, the first 2 reader tasks will occupy the cores by “while (1)” without yield, so the other 2 readers tasks and 4 writers tasks have no chance to be run.
This will lead to the test case loop forever , then the exp scrip will catch it and print “RTP Execution Timeout; rebooting”

The test case creates 4 tasks as “Reader”, and then 4 tasks as “Writer”, all those 8 task has the same priority 220 in VxWorks Kernel.
If the target has 2 cores, the first 2 reader tasks will occupy the cores by “while (1)” without yield, so the other 2 readers tasks and 4 writers tasks have no chance to be run.
This will lead to the test case loop forever without any ending.

Why modify spsc_queue_stress_test.cpp :
In VxWorks user-land task (Wind River calls it as RTP), the max number of objects (the internal data structure RTP uses) in one RTP is limited at most 65535.
When the test is selected to run, the C++ constructor will create 1<<16 number of mutex via "new spsc_queue_tester".
And after test1->run() is finished, the C++ destructor will delete 1<<16 number of mutex by default.
This caused the problem, because VxWorks just support ((1<<16)-1) objects within an RTP.
2018-11-12 15:25:39 +08:00
Tim Blechmann
ffa371d6d8 build system: fix travis integration 2018-11-05 16:14:55 +08:00
Tim Blechmann
38f0cfc28d Merge remote-tracking branch 'origin/develop' 2018-04-16 07:53:09 +02:00
Tim Blechmann
ffd91db458 freelist: compile fix for msvc/32bit builds 2018-04-13 13:29:40 +02:00
Tim Blechmann
39119876d2 github: prototype travis/appveyor integration
adapted from Rene Rivera/boost.predef
2018-03-28 10:40:56 +02:00
Tim Blechmann
bfed8f13a0 tagged_ptr: msvc 12 compiler workaround 2018-03-28 10:08:50 +02:00
Tim Blechmann
49e5815685 spsc_queue: silence compiler warning 2018-03-28 10:08:50 +02:00
Tim Blechmann
dcaba572e8 testsuite: avoid namespace std 2018-03-28 10:08:50 +02:00
Tim Blechmann
1317833b8c tagged ptr: fix pointer compression logic 2018-03-17 18:52:15 +07:00
Tim Blechmann
8779eb9a17
Merge pull request #40 from DanielaE/fix/replace-deprecated-allocator-members
Most members of std::allocate are deprecated in C++17
2017-12-29 20:42:46 +08:00
Daniela Engert
f6a2489143
Most members of std::allocate are deprecated in C++17
Replace them by their cousins from std::allocator_traits.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-29 12:25:02 +01:00
Tim Blechmann
b3614782c6
Merge pull request #39 from gongminmin/develop
Add allocator rebind helper to wrap the deprecated allocator::rebind in C++17
2017-12-29 14:06:48 +08:00
Minmin Gong
6c42019b6c Add allocator rebind helper to wrap the deprecated allocator::rebind in C++17.
In VS2017.5 with /std:c++17, allocator::rebind is deprecated. Add a helper to
fix this.
2017-12-28 22:02:48 -08:00
Peter Dimov
12726cda00 Add #include <boost/next_prior.hpp>; no longer in utility.hpp 2017-12-02 04:10:46 +02:00
Tim Blechmann
6bee2bf6f2 Merge pull request #37 from linux-on-ibm-z/s390x
lockfree: increase the lockfree cache line size for IBM Z
2017-09-18 17:57:56 +02:00
Michael Munday
837972b948 lockfree: increase the lockfree cache line size for IBM Z
The cache line size on IBM Z (s390, s390x) is 256 bytes.
2017-07-24 09:18:05 -04:00
Tim Blechmann
8e98981c21 Merge pull request #32 from DanielaE/fix/missing-include
Fix compilation errors regarding undefined symbol 'cout' because of m…
2017-05-20 17:10:49 +02:00
Tim Blechmann
c98b90572f Merge pull request #33 from DanielaE/fix/narrowing
Fix narrowing conversion.
2017-05-20 17:10:29 +02:00
Tim Blechmann
0a9a2961a0 Merge pull request #34 from DanielaE/feature/replace-c++98-auto_ptr
Conditionally replace deprecated/removed std::auto_ptr by std::unique…
2017-05-20 17:09:48 +02:00
Daniela Engert
68eac640cd Fix narrowing conversion.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-12 17:57:27 +02:00
Daniela Engert
7b63352a00 Conditionally replace deprecated/removed std::auto_ptr by std::unique_ptr.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-12 17:30:54 +02:00
Daniela Engert
582b27bf0b Fix compilation errors regarding undefined symbol 'cout' because of missing include <iostream>.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-12 17:27:31 +02:00
Tim Blechmann
96001aa73e Merge pull request #30 from brycelelbach/patch-1
Disable incorrect Intel compiler warning about unused template parameter
2017-03-02 12:55:56 +08:00
Bryce Adelstein-Lelbach
b6848df37b Disable incorrect Intel compiler warning about unused template parameter
See: https://gist.github.com/brycelelbach/1141193a61d465f27342fe2cff5c535e

I've filed a bug with Intel for the bad warning.

bryce - at - cppnow - dot - org if you need to reach me.
2017-02-23 18:34:05 -08:00
Tim Blechmann
a1dce3ffac Merge branch 'develop' 2016-11-20 15:32:39 +01:00
Tim Blechmann
ca78e010af stack: initialise null handles correctly 2016-11-20 15:31:00 +01:00
Tim Blechmann
963190e266 Merge remote-tracking branch 'origin/develop' 2016-11-20 15:19:52 +01:00
Tim Blechmann
1d27743d7d Merge pull request #29 from orgads/patch-1
Fix typo in queue documentation
2016-10-27 21:15:15 +08:00
Orgad Shaneh
fe2313c83d Fix typo in queue documentation 2016-10-27 16:04:51 +03:00
Rene Rivera
c7e5a19d09 Add, and update, documentation build targets. 2016-10-10 11:39:50 -05:00
Rene Rivera
2b674fc672 Add, and update, documentation build targets. 2016-10-07 23:07:34 -05:00
Tim Blechmann
7d5b6a13f0 Merge pull request #28 from rzinsly/develop
lockfree: increase the lockfree cache line size for PowerPC
2016-09-30 22:14:57 +08:00
Raphael Moreira Zinsly
303b103e8a lockfree: increase the lockfree cache line size for PowerPC
PowerPC processors support 128-bytes cache lines.
This patch increases the lockfree data structures cache line to
128 bytes for PowerPC, this increases performance on large systems
for big structures.
2016-09-29 11:31:22 -03:00
Tim Blechmann
ca7e8c9856 Merge remote-tracking branch 'origin/develop' 2016-08-18 21:50:22 +02:00
Tim Blechmann
5200b6f59b lockfree: stack - fix null handle in consume_atomic functions 2016-08-07 20:51:37 +02:00
Tim Blechmann
45a2e3a097 lockfree: use variadic templates for policy parameters 2016-07-29 23:40:43 +02:00
Tim Blechmann
82d51cb25f stack/freelist: silence warning 2016-07-29 21:32:50 +02:00
Tim Blechmann
7e2ebb38b6 stack: compile fix 2016-07-29 21:32:50 +02:00