Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v4] api: thread: add functions for control/worker thread counts #1950

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

MatiasElo
Copy link
Collaborator

No description provided.

@odpbuild odpbuild changed the title api: thread: add functions for control/worker thread counts [PATCH v1] api: thread: add functions for control/worker thread counts Nov 15, 2023
include/odp/api/spec/thread_types.h Outdated Show resolved Hide resolved
test/validation/api/thread/thread.c Outdated Show resolved Hide resolved
@odpbuild odpbuild changed the title [PATCH v1] api: thread: add functions for control/worker thread counts [PATCH v2] api: thread: add functions for control/worker thread counts Nov 28, 2023
Copy link
Collaborator

@TuomasTaipale TuomasTaipale left a comment

Choose a reason for hiding this comment

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

Typo in 3bdae8a message: "belongs" -> "belong", otherwise looks good.

@MatiasElo MatiasElo added the API Ready API change ready to be merged (with the next API version increment) label Dec 12, 2023
@odpbuild odpbuild changed the title [PATCH v2] api: thread: add functions for control/worker thread counts [PATCH v3] api: thread: add functions for control/worker thread counts Dec 19, 2023
Move ODP_THREAD_COUNT_MAX specification and definition to thread_types
headers where they belong to. No functional API changes.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
…count

Add new functions odp_thread_control_count_max() and
odp_thread_worker_count_max() for reading the maximum number of control and
worker threads.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
…count

Add new functions odp_thread_control_count() and odp_thread_worker_count()
for reading the current number of control and worker threads.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
…tions

Implement new functions odp_thread_control_count() and
odp_thread_worker_count() for reading the current number of control and
worker threads.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Implement new functions odp_thread_control_count_max() and
odp_thread_worker_count_max() for reading the maximum number of control and
worker threads.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
…ctions

Add validation tests for the new control/worker thread count functions.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
@odpbuild odpbuild changed the title [PATCH v3] api: thread: add functions for control/worker thread counts [PATCH v4] api: thread: add functions for control/worker thread counts Dec 19, 2023
@psavol psavol merged commit 05b146f into OpenDataPlane:master Dec 19, 2023
170 of 171 checks passed
@MatiasElo MatiasElo deleted the dev/api-max-threads branch December 20, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Ready API change ready to be merged (with the next API version increment)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants