From cb7706da8006bd72bcd8d6ddbf268f95f41507a3 Mon Sep 17 00:00:00 2001 From: Katze719 Date: Wed, 2 Dec 2026 22:21:58 +0100 Subject: [PATCH 1/2] Add ThreadSchedule 4.1.0 to the package index --- .../2026-12-02-add-threadschedule-plan.md | 22 +++++++++++++ mcpp.toml | 1 + pkgs/t/threadschedule.lua | 31 +++++++++++++++++++ .../examples/threadschedule-module/mcpp.toml | 13 ++++++++ .../threadschedule-module/tests/smoke.cpp | 15 +++++++++ 5 files changed, 82 insertions(+) create mode 100644 .agents/docs/2026-12-02-add-threadschedule-plan.md create mode 100644 pkgs/t/threadschedule.lua create mode 100644 tests/examples/threadschedule-module/mcpp.toml create mode 100644 tests/examples/threadschedule-module/tests/smoke.cpp diff --git a/.agents/docs/2026-12-02-add-threadschedule-plan.md b/.agents/docs/2026-12-02-add-threadschedule-plan.md new file mode 100644 index 00000000..9fc163c7 --- /dev/null +++ b/.agents/docs/2026-12-02-add-threadschedule-plan.md @@ -0,0 +1,22 @@ +# ThreadSchedule 4.1.0 + +ThreadSchedule ships a native mcpp manifest in its source archive. The Form A +entry points to that manifest and uses the GitHub release asset produced by +`mcpp publish`. The same archive serves all three platform blocks. The entry +uses a single GitHub URL because a GitCode mirror has not been configured. + +The default package exposes the headers. The `modules` feature exposes the +experimental `threadschedule` module, and the `runtime` feature links the +optional shared registry. The index workspace member exercises the C++23 +module with `import std` and a move-only task on Linux with GCC 16.2.0. That +configuration is covered by upstream CI. The upstream header build covers +Windows as well. + +The updater derives later archive URLs from upstream GitHub tags. The tagged +source tree contains the same manifest, module, headers and runtime sources as +the published package. + +Validation used the index's pinned mcpp 2026.11.23.1. The released archive +matched the SHA-256 in the descriptor and the workspace consumer downloaded, +compiled and ran it successfully. The descriptor passed `mcpp xpkg parse` +and the index identity, platform parity, mirror and duplicate-version checks. diff --git a/mcpp.toml b/mcpp.toml index 522765d5..0fcd0f3a 100644 --- a/mcpp.toml +++ b/mcpp.toml @@ -277,6 +277,7 @@ members = [ "tests/examples/thorvg", "tests/examples/tinyhttps", "tests/examples/tensorvia", + "tests/examples/threadschedule-module", "tests/examples/usockets", "tests/examples/opencl", "tests/examples/sycl-runtime", diff --git a/pkgs/t/threadschedule.lua b/pkgs/t/threadschedule.lua new file mode 100644 index 00000000..2a0acbc4 --- /dev/null +++ b/pkgs/t/threadschedule.lua @@ -0,0 +1,31 @@ +-- Form A: the release archive contains the native ThreadSchedule manifest. +package = { + spec = "1", + namespace = "mcpplibs", + name = "threadschedule", + description = "Thread management and scheduling for C++", + licenses = {"MIT"}, + repo = "https://github.com/Katze719/ThreadSchedule", + type = "package", + + extensions = { + autoupdate = { + tag = "v${version}", + url = "https://github.com/Katze719/ThreadSchedule/archive/refs/tags/${tag}.tar.gz", + }, + }, + + xpm = { + linux = { + ['4.1.0'] = { url = "https://github.com/Katze719/ThreadSchedule/releases/download/v4.1.0/threadschedule-4.1.0.tar.gz", sha256 = "f35790f50ea1543a61ffdf96821f6814e31955902114b99bcc145c014422654b" }, + }, + macosx = { + ['4.1.0'] = { url = "https://github.com/Katze719/ThreadSchedule/releases/download/v4.1.0/threadschedule-4.1.0.tar.gz", sha256 = "f35790f50ea1543a61ffdf96821f6814e31955902114b99bcc145c014422654b" }, + }, + windows = { + ['4.1.0'] = { url = "https://github.com/Katze719/ThreadSchedule/releases/download/v4.1.0/threadschedule-4.1.0.tar.gz", sha256 = "f35790f50ea1543a61ffdf96821f6814e31955902114b99bcc145c014422654b" }, + }, + }, + + mcpp = "*/mcpp.toml", +} diff --git a/tests/examples/threadschedule-module/mcpp.toml b/tests/examples/threadschedule-module/mcpp.toml new file mode 100644 index 00000000..0d61c8b2 --- /dev/null +++ b/tests/examples/threadschedule-module/mcpp.toml @@ -0,0 +1,13 @@ +[package] +name = "threadschedule-module-tests" +version = "0.1.0" +standard = "c++23" + +[toolchain] +linux = "gcc@16.2.0" + +[indices] +mcpplibs = { path = "../../.." } + +[target.linux.dependencies] +mcpplibs.threadschedule = { version = "=4.1.0", features = ["modules"] } diff --git a/tests/examples/threadschedule-module/tests/smoke.cpp b/tests/examples/threadschedule-module/tests/smoke.cpp new file mode 100644 index 00000000..2e181272 --- /dev/null +++ b/tests/examples/threadschedule-module/tests/smoke.cpp @@ -0,0 +1,15 @@ +#if defined(__linux__) +import std; +import threadschedule; +#endif + +int main() +{ +#if defined(__linux__) + threadschedule::thread_pool pool(threadschedule::worker_count{1}); + auto task = pool.submit([value = std::make_unique(42)] { return *value; }); + return task && task->get() == 42 ? 0 : 1; +#else + return 0; +#endif +} From 5257dbfeff7306a5c2e8eb43b910ae35c8dfa5b8 Mon Sep 17 00:00:00 2001 From: Katze719 Date: Thu, 3 Dec 2026 18:12:44 +0100 Subject: [PATCH 2/2] Use the maintainer namespace for ThreadSchedule --- .agents/docs/2026-12-02-add-threadschedule-plan.md | 7 ++++--- .../threadschedule.lua => k/katze719.threadschedule.lua} | 2 +- tests/examples/threadschedule-module/mcpp.toml | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename pkgs/{t/threadschedule.lua => k/katze719.threadschedule.lua} (97%) diff --git a/.agents/docs/2026-12-02-add-threadschedule-plan.md b/.agents/docs/2026-12-02-add-threadschedule-plan.md index 9fc163c7..cb6af7a3 100644 --- a/.agents/docs/2026-12-02-add-threadschedule-plan.md +++ b/.agents/docs/2026-12-02-add-threadschedule-plan.md @@ -1,9 +1,10 @@ # ThreadSchedule 4.1.0 ThreadSchedule ships a native mcpp manifest in its source archive. The Form A -entry points to that manifest and uses the GitHub release asset produced by -`mcpp publish`. The same archive serves all three platform blocks. The entry -uses a single GitHub URL because a GitCode mirror has not been configured. +entry `katze719.threadschedule` points to that manifest and uses the release +asset produced by `mcpp publish`. The same archive serves all three platform +blocks. The entry uses a single GitHub URL because a GitCode mirror has not +been configured. The default package exposes the headers. The `modules` feature exposes the experimental `threadschedule` module, and the `runtime` feature links the diff --git a/pkgs/t/threadschedule.lua b/pkgs/k/katze719.threadschedule.lua similarity index 97% rename from pkgs/t/threadschedule.lua rename to pkgs/k/katze719.threadschedule.lua index 2a0acbc4..964d3d22 100644 --- a/pkgs/t/threadschedule.lua +++ b/pkgs/k/katze719.threadschedule.lua @@ -1,7 +1,7 @@ -- Form A: the release archive contains the native ThreadSchedule manifest. package = { spec = "1", - namespace = "mcpplibs", + namespace = "katze719", name = "threadschedule", description = "Thread management and scheduling for C++", licenses = {"MIT"}, diff --git a/tests/examples/threadschedule-module/mcpp.toml b/tests/examples/threadschedule-module/mcpp.toml index 0d61c8b2..56196b3e 100644 --- a/tests/examples/threadschedule-module/mcpp.toml +++ b/tests/examples/threadschedule-module/mcpp.toml @@ -7,7 +7,7 @@ standard = "c++23" linux = "gcc@16.2.0" [indices] -mcpplibs = { path = "../../.." } +katze719 = { path = "../../.." } [target.linux.dependencies] -mcpplibs.threadschedule = { version = "=4.1.0", features = ["modules"] } +katze719.threadschedule = { version = "=4.1.0", features = ["modules"] }