{"id":30237617,"url":"https://github.com/ellectroid/miniworkerthread","last_synced_at":"2025-08-15T02:05:50.061Z","repository":{"id":301943289,"uuid":"1010734890","full_name":"ellectroid/MiniWorkerThread","owner":"ellectroid","description":"A minimal, single-class worker thread for C++—flag-controlled, fast, and heap-free.","archived":false,"fork":false,"pushed_at":"2025-06-29T17:58:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T18:47:40.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ellectroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T17:37:14.000Z","updated_at":"2025-06-29T17:58:31.000Z","dependencies_parsed_at":"2025-06-29T18:47:41.510Z","dependency_job_id":"09054c40-c233-460b-9d1c-8567a113ac9b","html_url":"https://github.com/ellectroid/MiniWorkerThread","commit_stats":null,"previous_names":["ellectroid/miniworkerthread"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ellectroid/MiniWorkerThread","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FMiniWorkerThread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FMiniWorkerThread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FMiniWorkerThread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FMiniWorkerThread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellectroid","download_url":"https://codeload.github.com/ellectroid/MiniWorkerThread/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FMiniWorkerThread/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270511293,"owners_count":24597666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-15T02:05:47.613Z","updated_at":"2025-08-15T02:05:50.052Z","avatar_url":"https://github.com/ellectroid.png","language":"C++","readme":"# MiniWorkerThread\nA minimal, single-class worker thread for C++—flag-controlled, fast, and heap-free.\n\nMiniWorkerThread is a minimal, single-class worker thread for C++. \nFeatures: C++11, no heap, thread-safe, sleeping idle thread, worker reusable for another task, very simple, debuggable and modifyable.\n\nUsage:\n```\nWorkerThread worker;\nworker.setWorkFunction(myFunction);\nworker.setWorkPointerArg(0, \u0026myData);\nworker.setWorkIntArg(0, 42);\nworker.enableWorkRepeat();\nworker.start();\nworker.requestWork();\n// ...\nworker.stop_join();\n```\n\nPublic API overview:   \n   \nControl:   \n- start\n- stop_join\n- stop_detach\n- requestWork\n- sendSignal\n- setDetachOnTerminate\n- reset\n   \nWork configuration:   \n- setWorkFunction\n- enableWorkRepeat\n- disableWorkRepeat\n    \nEmbedded argument storage:   \n- setWorkPointerArg\n- getWorkPointerArg\n- setWorkIntArg\n- getWorkIntArg\n- setWorkUIntArg\n- getWorkUIntArg\n    \nState and diagnostics:   \n- isThreadActive\n- isIdle\n- isBusy\n- getSignal\n- getFlags\n     \nSupported signals:   \n- SIGNAL_NONE (0): no signal\n- SIGNAL_KILL (1): gracefully terminates the thread\n    \nInternal flags:   \n- FLAG_THREAD_ACTIVE: thread is running\n- FLAG_TERMINATE_PENDING: shutdown has been requested (kill signal sent)\n- FLAG_DETACH_ON_TERMINATE: thread will detach instead of join if kill signal is sent\n- FLAG_IDLE: thread is blocked (sleeping)\n- FLAG_BUSY: task is executing (work)\n- FLAG_WORK_PENDING: work execution is requested, not executing yet\n- FLAG_WORK_REPEAT: repeat mode is active (run task repeatedly)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fminiworkerthread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellectroid%2Fminiworkerthread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fminiworkerthread/lists"}