katze719.threadschedule
importThread management and scheduling for C++
import threadschedule;
Module name read from the upstream `export module` declaration in modules/threadschedule.cppm.
mcpp add katze719.threadschedule@4.1.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
#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
}
tests/examples/threadschedule-module/tests/smoke.cpp · project tests/examples/threadschedule-module
Build · upstream manifest
- modules
threadschedule- targets
threadschedule (lib), basic_example (bin), getting_started_example (bin), registry_example (bin), registry_merge_example (bin), external_registry_example (bin), registry_chainable_example (bin), scheduled_tasks_example (bin), error_handling_example (bin), thread_configuration_example (bin), short_lived_thread_example (bin), this_thread_example (bin), jthread_example (bin), thread_by_name_view_example (bin), module_example (bin), thread_benchmarks (bin), thread_allocation_benchmarks (bin)- language
c++23- manifest version
4.1.0- source
https://raw.githubusercontent.com/Katze719/ThreadSchedule/v4.1.0/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
4.1.0 latest |
LinuxWindowsmacOS | source | f35790f50ea1… |