{"id":18584166,"url":"https://github.com/ellectroid/asynceventhandler_basic","last_synced_at":"2025-05-16T05:30:24.750Z","repository":{"id":223168747,"uuid":"759426601","full_name":"ellectroid/AsyncEventHandler_Basic","owner":"ellectroid","description":"Asynchronous single-threaded event handler","archived":false,"fork":false,"pushed_at":"2024-02-19T10:43:02.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T16:51:51.458Z","etag":null,"topics":["async","asynchronous","event","event-driven","event-handling","event-management","fifo","function-pointers","queue","semaphore","thread","threads"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2024-02-18T15:10:27.000Z","updated_at":"2024-02-18T17:02:33.000Z","dependencies_parsed_at":"2024-02-18T19:23:40.435Z","dependency_job_id":"0d2ebe90-1263-4b7b-a650-4738d8621c67","html_url":"https://github.com/ellectroid/AsyncEventHandler_Basic","commit_stats":null,"previous_names":["ellectroid/asynceventhandler_basic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FAsyncEventHandler_Basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FAsyncEventHandler_Basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FAsyncEventHandler_Basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellectroid%2FAsyncEventHandler_Basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellectroid","download_url":"https://codeload.github.com/ellectroid/AsyncEventHandler_Basic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254473713,"owners_count":22077159,"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","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":["async","asynchronous","event","event-driven","event-handling","event-management","fifo","function-pointers","queue","semaphore","thread","threads"],"created_at":"2024-11-07T00:26:28.268Z","updated_at":"2025-05-16T05:30:24.716Z","avatar_url":"https://github.com/ellectroid.png","language":"C++","readme":"# AsyncEventHandler_Basic\nAsynchronous single-threaded event handler  \n\nFor demonstration purposes only  \n\nAsyncEventHandler implementation  \nDialect: C++20 (uses \\\u003csemaphore\\\u003e)  \n\nProperties:  \n- 1 thread, sleeps when idle  \n- 1 externally provided event handler function for all events  \n- 1 externally provided event parameter buffer of user-defined size  \n- 4 handler function parameters individual to every event  \n- 1 externally provided queue of events of user-defined size  \n- Binds event ID number to a set of parameters for the handler  \n- Events triggered using event number  \n- Supports negative event numbers (for example, for error handling events)  \n- Activate/deactivate handler execution on per-event and global level  \n- Diverse error codes in case something goes wrong  \n- Trivially destructible  \n- Buffer memory and a thread object are provided externally (doesn't manage object lifetime of anything)  \n- You can change internal pointers at runtime if you're into that sort of thing\n- It actually seems to work\n\nIncludes a test function with detailed explanation and example of setup, use and error handling.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fasynceventhandler_basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellectroid%2Fasynceventhandler_basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellectroid%2Fasynceventhandler_basic/lists"}