• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

STEllAR-GROUP / hpx / #850

15 Dec 2022 03:00PM UTC coverage: 86.404% (+0.7%) from 85.715%
#850

push

StellarBot
Merge #6098

6098: Forking Boost.Lockfree r=hkaiser a=hkaiser

Working towards #3440 

Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>

1285 of 1285 new or added lines in 18 files covered. (100.0%)

174060 of 201449 relevant lines covered (86.4%)

1882623.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.83
/libs/core/concurrency/tests/unit/queue_stress.cpp
1
//  Copyright (C) 2011 Tim Blechmann
2
//  Copyright (c) 2022 Hartmut Kaiser
3
//
4
//  SPDX-License-Identifier: BSL-1.0
5
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
6
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7

8
#include <hpx/local/init.hpp>
9
#include <hpx/modules/concurrency.hpp>
10
#include <hpx/modules/testing.hpp>
11
#include <hpx/program_options.hpp>
12

13
#include <memory>
14

15
#include "test_common.hpp"
16

17
void queue_test_bounded()
1✔
18
{
19
    using tester_type = queue_stress_tester<true>;
20

21
    std::unique_ptr<tester_type> tester(new tester_type(2, 2));
1✔
22

23
    hpx::lockfree::queue<long> q(128);
1✔
24
    tester->run(q);
1✔
25
}
1✔
26

27
void queue_test_unbounded()
1✔
28
{
29
    using tester_type = queue_stress_tester<false>;
30

31
    std::unique_ptr<tester_type> tester(new tester_type(2, 2));
1✔
32

33
    hpx::lockfree::queue<long> q(128);
1✔
34
    tester->run(q);
1✔
35
}
1✔
36

37
void queue_test_fixed_size()
1✔
38
{
39
    using tester_type = queue_stress_tester<>;
40

41
    std::unique_ptr<tester_type> tester(new tester_type(2, 2));
1✔
42

43
    hpx::lockfree::queue<long, std::allocator<long>, 8> q;
1✔
44
    tester->run(q);
1✔
45
}
1✔
46

47
int hpx_main(hpx::program_options::variables_map&)
1✔
48
{
49
    queue_test_bounded();
1✔
50
    queue_test_unbounded();
1✔
51
    queue_test_fixed_size();
1✔
52

53
    return hpx::local::finalize();
1✔
54
}
55

56
int main(int argc, char** argv)
1✔
57
{
58
    hpx::local::init(hpx_main, argc, argv);
1✔
59
    return hpx::util::report_errors();
1✔
60
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc