Skip to content

Carve FixedSizeQueue out of MpscBoundedQueue - #367

Open
paulquiring wants to merge 3 commits into
eclipse-score:mainfrom
etas-contrib:feature/carve-FixedSizeQueue-out-of-MpscBoundedQueue
Open

Carve FixedSizeQueue out of MpscBoundedQueue#367
paulquiring wants to merge 3 commits into
eclipse-score:mainfrom
etas-contrib:feature/carve-FixedSizeQueue-out-of-MpscBoundedQueue

Conversation

@paulquiring

@paulquiring paulquiring commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Carve FixedSizeQueue out of MpscBoundedQueue for reuse.
MpscBoundedQueues capacity can be set now at runtime, to allow
setting the capacity based on configuration.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: ca3c3c0a-6918-4cc6-be86-926740c205f6
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (36 packages loaded, 10 targets configured)

Analyzing: target //:license-check (85 packages loaded, 10 targets configured)

Analyzing: target //:license-check (111 packages loaded, 92 targets configured)

Analyzing: target //:license-check (151 packages loaded, 2796 targets configured)

Analyzing: target //:license-check (156 packages loaded, 5498 targets configured)

Analyzing: target //:license-check (156 packages loaded, 5498 targets configured)

Analyzing: target //:license-check (161 packages loaded, 5547 targets configured)

Analyzing: target //:license-check (161 packages loaded, 5547 targets configured)

Analyzing: target //:license-check (164 packages loaded, 7434 targets configured)

Analyzing: target //:license-check (166 packages loaded, 10255 targets configured)

Analyzing: target //:license-check (168 packages loaded, 10283 targets configured)

Analyzing: target //:license-check (168 packages loaded, 10283 targets configured)

Analyzing: target //:license-check (168 packages loaded, 10283 targets configured)

Analyzing: target //:license-check (168 packages loaded, 10283 targets configured)

INFO: Analyzed target //:license-check (169 packages loaded, 10409 targets configured).
[14 / 16] [Prepa] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar
[15 / 16] Building license.check.license_check.jar (); 0s disk-cache, multiplex-worker
INFO: Found 1 target...
Target //:license.check.license_check up-to-date:
  bazel-bin/license.check.license_check
  bazel-bin/license.check.license_check.jar
INFO: Elapsed time: 28.479s, Critical Path: 2.42s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/license.check.license_check ./formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated
@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated

@WilliamRoebuck WilliamRoebuck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, only minor comments

Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated
Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated
Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated
@NicolasFussberger

Copy link
Copy Markdown
Contributor

Should we move this out to a separate file if it is a reusable container?

Comment thread score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp Outdated
@paulquiring

Copy link
Copy Markdown
Contributor Author

Should we move this out to a separate file if it is a reusable container?

fixed in last commit

#include <optional>
#include <vector>

#include <score/assert.hpp>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in latest commit

"size() returns 0 "
"capacity() returns 0 "
"push returns false "
"tryPop() turns std::nullopt");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"tryPop() turns std::nullopt");
"tryPop() returns std::nullopt");

@paulquiring paulquiring Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest commit

while(!queue_cap_five.full()) {
EXPECT_TRUE(queue_cap_five.push(1));
++no_elements;
RecordProperty("Description", "Verify that push increments the size by one.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can RecordProperty with Description actually be used multiple times in the same test?
I would have thought this overwrites the previous description

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest commit

#include <vector>

using namespace score::lcm::internal;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants