WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@vinniefalco
Copy link
Member

No description provided.

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 27, 2025

An automated preview of the documentation is available at https://42.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-12-29 07:31:49 UTC

@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 81.26464% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.59%. Comparing base (3faa4a8) to head (8021b12).

Files with missing lines Patch % Lines
src/work_allocator.cpp 63.49% 46 Missing ⚠️
include/boost/capy/executor.hpp 83.33% 15 Missing ⚠️
src/thread_pool.cpp 86.41% 11 Missing ⚠️
include/boost/capy/make_affine.hpp 91.89% 6 Missing ⚠️
include/boost/capy/async_result.hpp 94.87% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #42      +/-   ##
===========================================
+ Coverage    74.40%   75.59%   +1.19%     
===========================================
  Files           23       28       +5     
  Lines         1293     1676     +383     
===========================================
+ Hits           962     1267     +305     
- Misses         331      409      +78     
Files with missing lines Coverage Δ
include/boost/capy/task.hpp 96.61% <100.00%> (+0.38%) ⬆️
src/work_allocator.hpp 100.00% <100.00%> (ø)
include/boost/capy/async_result.hpp 96.00% <94.87%> (+0.34%) ⬆️
include/boost/capy/make_affine.hpp 91.89% <91.89%> (ø)
src/thread_pool.cpp 86.41% <86.41%> (ø)
include/boost/capy/executor.hpp 83.33% <83.33%> (ø)
src/work_allocator.cpp 63.49% <63.49%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3faa4a8...8021b12. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 27, 2025

GCOVR code coverage report https://42.capy.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://42.capy.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff https://42.capy.prtest3.cppalliance.org/gcovr/coverage_diff.txt

Build time: 2025-12-29 07:36:46 UTC

- Replace shared_ptr with function pointer vtable + void* pair
- executor now references execution context without ownership
- Add thread_pool class declaration with executor interface
- Update tests to use stack-allocated execution contexts
- Matches Asio/P2300 pattern: context owns resources, executor is lightweight handle
- Add executor::access struct as friend gateway for contexts
- Execution contexts friend access and keep allocate/deallocate/submit private
- Update ops_for to call through access:: methods
- Add get_executor() to thread_pool
- Expand documentation with execution context implementation guide
- Document work lifecycle and ownership transfer semantics
- Update tests to use friend pattern
- Add size and align public members to executor::work
- factory::commit() sets these before submission
- Execution contexts use w->size and w->align when deallocating
- Implement thread_pool with worker threads and work queue
- Add comprehensive thread_pool tests
- work_arena: fixed-size buffer allocating high-to-low
- Tracks allocation count, deallocate just decrements
- work_arena_pool: manages multiple arenas dynamically
- Geometric size growth, prunes excess empty arenas
- Settles to ~2 arenas under steady-state load
- Reorder declarations: dtor before ctor
- Add Javadoc to work_arena and work_arena_pool accessors
- Fix minor formatting (stray whitespace)
- Remove friend, allocate, deallocate, submit from thread_pool
- Bind executor to impl instead of thread_pool
- Keep execution context as implementation detail
- Rename class work_arena_pool -> work_allocator
- Make work_arena a nested type work_allocator::arena
- Rename files work_arena.hpp/cpp -> work_allocator.hpp/cpp
- Move arena definition out-of-line with forward declaration
- Replace auto lambda parameters with explicit types
- Use system::result instead of boost::system::result
- Replace auto lambda parameters with explicit types in tests
- Fix unused lambda capture warning in async_post (C++20)
- Remove size, align, next members from executor::work
- Execution contexts now prepend a header to track allocation metadata
- Update thread_pool::impl to use header pattern
- Update test executors to use header pattern
- executor::work is now minimal (just vtable pointer)
Ensures strict C++ standards conformance for pointer comparisons
across different allocations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants