{"id":13958955,"url":"https://github.com/cloudwu/Coroutine","last_synced_at":"2025-07-21T00:32:45.062Z","repository":{"id":4049592,"uuid":"5152019","full_name":"cloudwu/coroutine","owner":"cloudwu","description":"A asymmetric coroutine library for C.","archived":false,"fork":false,"pushed_at":"2022-12-16T09:23:01.000Z","size":9,"stargazers_count":2489,"open_issues_count":8,"forks_count":687,"subscribers_count":135,"default_branch":"master","last_synced_at":"2025-05-22T11:08:21.097Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudwu.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}},"created_at":"2012-07-23T13:17:21.000Z","updated_at":"2025-05-20T02:06:56.000Z","dependencies_parsed_at":"2023-01-11T16:34:36.040Z","dependency_job_id":null,"html_url":"https://github.com/cloudwu/coroutine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudwu/coroutine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fcoroutine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fcoroutine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fcoroutine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fcoroutine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwu","download_url":"https://codeload.github.com/cloudwu/coroutine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwu%2Fcoroutine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266221324,"owners_count":23894966,"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":[],"created_at":"2024-08-08T13:02:11.819Z","updated_at":"2025-07-21T00:32:40.055Z","avatar_url":"https://github.com/cloudwu.png","language":"C","readme":"It's an asymmetric coroutine library (like lua).\n\nYou can use coroutine_open to open a schedule first, and then create coroutine in that schedule. \n\nYou should call coroutine_resume in the thread that you call coroutine_open, and you can't call it in a coroutine in the same schedule.\n\nCoroutines in the same schedule share the stack , so you can create many coroutines without worry about memory.\n\nBut switching context will copy the stack the coroutine used.\n\nRead source for detail.\n\nChinese blog : http://blog.codingnow.com/2012/07/c_coroutine.html","funding_links":[],"categories":["C/C++ 程序设计"],"sub_categories":["网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwu%2FCoroutine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwu%2FCoroutine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwu%2FCoroutine/lists"}