Repository navigation
Add ThreadSchedule 4.1.0 #973
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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", | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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<int>(42)] { return *value; }); | ||
| return task && task->get() == 42 ? 0 : 1; | ||
| #else | ||
| return 0; | ||
| #endif | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The namespace needs to be changed to your ID (or your usual alias), and the filename needs to be updated.
exmaple:
mcpp-index/pkgs/n/nlohmann.json.lua
Line 23 in bcf6e27