{"id":30034350,"url":"https://github.com/thehxdev/chan","last_synced_at":"2025-08-06T23:43:09.943Z","repository":{"id":298356414,"uuid":"999709673","full_name":"thehxdev/chan","owner":"thehxdev","description":"Generic and thread-safe FIFO (Queue) written in C99","archived":false,"fork":false,"pushed_at":"2025-06-10T17:24:42.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-10T18:47:21.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thehxdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10T17:03:03.000Z","updated_at":"2025-06-10T17:24:45.000Z","dependencies_parsed_at":"2025-06-10T18:57:36.338Z","dependency_job_id":null,"html_url":"https://github.com/thehxdev/chan","commit_stats":null,"previous_names":["thehxdev/chan"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thehxdev/chan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thehxdev%2Fchan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thehxdev%2Fchan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thehxdev%2Fchan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thehxdev%2Fchan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thehxdev","download_url":"https://codeload.github.com/thehxdev/chan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thehxdev%2Fchan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269175781,"owners_count":24373082,"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-06T02:00:09.910Z","response_time":99,"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-06T23:43:04.904Z","updated_at":"2025-08-06T23:43:09.908Z","avatar_url":"https://github.com/thehxdev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chan\nChan is a generic, thread-safe, concurrent FIFO (Queue data structure) implementation similar to Go channles in C99.\nIt supports buffered and unbuffered modes.\n\n\u003e [!NOTE]\n\u003e The library itself (`chan.c` and `chan.h`) is implemented with ANSI C99 standard. But some examples use gnu99 standard for non-std functionalities.\n\n\u003e [!WARNING]\n\u003e This project is for learning purposes. Do NOT use this in production or your projects.\n\n## Build\nThis library is written with `pthread` and it's a single `chan.c` file. To build the example program `main.c`:\n```bash\nmake\n```\nThis will build an executable that uses `chan.c` and `chan.h` files. The test creates 4 producer threads that push integer\nvalues to the channel with 4 consumer threads. Consumer threads pop integer values from channel and print them.\n\n## Public interface\nRead `chan.h` file. It's easy to understand :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthehxdev%2Fchan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthehxdev%2Fchan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthehxdev%2Fchan/lists"}