Skip to content

coro::thread_pool high cpu usage when tasks < threads #110

coro::thread_pool high cpu usage when tasks < threads

coro::thread_pool high cpu usage when tasks < threads #110

Workflow file for this run

name: ci-fedora
on: [pull_request, workflow_dispatch]
jobs:
ci-fedora-gplusplus:
name: fedora-${{ matrix.fedora_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fedora_version: [37, 38, 39, 40]
cxx_standard: [20, 23]
libcoro_feature_networking: [ {enabled: ON, tls: ON} ]
libcoro_build_shared_libs: [OFF]
container:
image: fedora:${{ matrix.fedora_version }}
steps:
- name: Install Dependencies
run: |
sudo dnf install -y \
cmake \
git \
ninja-build \
gcc-c++ \
openssl \
openssl-devel
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Release
run: |
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
-DLIBCORO_BUILD_SHARED_LIBS=${{ matrix.libcoro_build_shared_libs }} \
..
cmake --build . --config Release
- name: Test
run: |
cd Release
ctest --build-config Release -VV