{"adoption": {"forks": 356, "observed_at": "2026-08-28T04:03:44.052905+00:00", "stars": 1138}, "canonical_url": "https://ross.abutalabs.com/products/lzpong-threadpool", "card": {"archived": false, "artifact_type": "library", "description": "based on C++11 , a mini threadpool , accept variable number of parameters 基于C++11的线程池,简洁且可以带任意多的参数", "domain": ["developer-tools", "performance"], "enriched": true, "function": ["concurrency", "developer-tools"], "health_score": 79, "homepage": "http://www.cnblogs.com/lzpong/p/6397997.html", "language": "C++", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["lzpong/threadpool"], "name": "lzpong/threadpool", "platform": ["cpp", "cross-platform", "windows"], "pushed_at": "2026-08-19T09:30:17+00:00", "repo": "lzpong/threadpool", "stars": 1138, "tags": ["thread-pool", "c++11", "header-only", "task-queue", "future", "backpressure", "mini", "algorithms", "linux", "macos"], "topics": ["threadpool", "thread-pool", "mini"], "urls": [], "use_cases": ["run tasks concurrently with a thread pool in C++", "submit lambdas with arbitrary arguments and get results via futures", "limit concurrent worker threads with a bounded task queue", "auto-scale thread count and reclaim idle threads", "learn C++11 concurrency idioms like packaged_task and condition_variable"], "what_it_is": "A minimal (~300 line) C++11 header-only thread pool that accepts variadic functions and lambdas and returns std::future results. It features a bounded task queue with backpressure, optional auto-growing threads with idle reclamation, and exception safety.", "when_to_avoid": ["you need advanced features like work stealing, priorities, or cancellation", "you need direct support for class member functions without bind/mem_fn", "your tasks submit and wait on subtasks in the same pool (deadlock risk)", "you need a production-grade pool with extensive tuning and metrics"], "when_to_choose": ["you need a tiny, dependency-free C++11 thread pool", "you want variadic task submission with future return values", "you need backpressure via a bounded queue", "you want a readable implementation to study C++11 threading"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/lzpong-threadpool", "repo": "lzpong/threadpool", "role": "main", "score": 76}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:44.052905+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:36:09.953001+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c0faf9a0721bf1f0c23ca7e78a9913b0ffeff9e0afaa79351e5adb5f0e2e72e", "fetched_at": "2026-08-28T04:03:44.052905+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lzpong/threadpool"}, {"content_hash": "bf2bbb175f88bb55f112af05546d80a40bc0b8c6ac28d277b46508083832f898", "fetched_at": "2026-08-29T12:41:11.586287+00:00", "kind": "homepage", "missing": false, "url": "http://www.cnblogs.com/lzpong/p/6397997.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3487, "days_push": 14, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 76, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}