{"id":19176802,"url":"https://github.com/pallas/liboco","last_synced_at":"2025-05-07T19:24:08.984Z","repository":{"id":15690420,"uuid":"18428164","full_name":"pallas/liboco","owner":"pallas","description":"A simple cooperative multitasking event framework written in C++.","archived":false,"fork":false,"pushed_at":"2024-01-02T10:21:11.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T02:35:27.296Z","etag":null,"topics":["cooperative-multitasking","event-driven","linux","ucontext"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pallas.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":"2014-04-04T05:12:17.000Z","updated_at":"2024-01-02T10:21:14.000Z","dependencies_parsed_at":"2024-11-09T10:31:19.412Z","dependency_job_id":"32a17b8a-2292-41a2-9bfc-11352517439c","html_url":"https://github.com/pallas/liboco","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallas%2Fliboco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallas%2Fliboco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallas%2Fliboco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallas%2Fliboco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pallas","download_url":"https://codeload.github.com/pallas/liboco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252942145,"owners_count":21829014,"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":["cooperative-multitasking","event-driven","linux","ucontext"],"created_at":"2024-11-09T10:30:17.097Z","updated_at":"2025-05-07T19:24:08.954Z","avatar_url":"https://github.com/pallas.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Deprecated\n\nSee\n[ioucontext](https://github.com/pallas/ioucontext),\na coöperative multitasking library based on\n[liburing](https://github.com/axboe/liburing)\nand written in C.\n\n======\n# liboco\n======\n\nliboco is a simple cooperative multitasking event framework written in C++\nas an exercise for the author.  It is not meant as a replacement for\nlibpthread, libevent, libev, \u0026c.\n\nRequires\n\n * [libace](https://github.com/pallas/libace)\n * [libite](https://github.com/pallas/libite)\n\nBased around ucontext and epoll, it is not currently intended to be\nportable.  In fact, it uses glibc extensions and Linux-specific system\ncalls, so it will probably only compile with that standard library and run\non a very modern kernel.\n\nIt is also not very safe regarding signals that are not processed via\nsignalfd.  In particular, calling core::schedule or core::wait_for_* with\nany pending signals that were not blocked when core::react was invoked are\nlikely to be handled at that time.  Signal masks should not be modified from\nwithin tasks.\n\nIt comes with the following example programs.\n\n * rfc862d --- Echo server, bound to any IPv4 address on port 7.\n * rfc862c --- Echo client, connects to 127.0.0.1 on port 7.\n\nand\n\n * open_fds --- Lists open FDs.  When launched as a child, useful for\n   finding FD leaks in parent process.\n\nWhile liboco is just a toy, the intention is to continue to add features and\nhammer out some more interesting use-cases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallas%2Fliboco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpallas%2Fliboco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallas%2Fliboco/lists"}