{"id":18523117,"url":"https://github.com/taymindis/lfstack","last_synced_at":"2026-03-12T21:07:13.733Z","repository":{"id":132372017,"uuid":"141082712","full_name":"Taymindis/lfstack","owner":"Taymindis","description":"lock-free LIFO stack by C native built it, easy built cross platform(no extra dependencies needed) , guarantee thread safety memory management ever! ","archived":false,"fork":false,"pushed_at":"2018-09-17T15:26:52.000Z","size":25,"stargazers_count":31,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-03T19:38:48.991Z","etag":null,"topics":["atomic","atomic-design","c","cpp","cross-platform","generictype","lifo","lockfree","stack"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Taymindis.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":"2018-07-16T03:36:14.000Z","updated_at":"2025-01-24T10:07:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"70eb4360-b467-40cb-b7aa-96adf383cdd7","html_url":"https://github.com/Taymindis/lfstack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Taymindis/lfstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taymindis%2Flfstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taymindis%2Flfstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taymindis%2Flfstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taymindis%2Flfstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Taymindis","download_url":"https://codeload.github.com/Taymindis/lfstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taymindis%2Flfstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30444324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T20:23:30.529Z","status":"ssl_error","status_checked_at":"2026-03-12T20:23:14.027Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atomic","atomic-design","c","cpp","cross-platform","generictype","lifo","lockfree","stack"],"created_at":"2024-11-06T17:34:17.452Z","updated_at":"2026-03-12T21:07:13.710Z","avatar_url":"https://github.com/Taymindis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lfstack [![Build Status](https://travis-ci.org/Taymindis/lfstack.svg?branch=master)](https://travis-ci.org/Taymindis/lfstack)\n\nlock-free LIFO stack by C native built it, easy built cross platform(no extra dependencies needed) , guarantee thread safety memory management ever!\n\n# All Platform tests\n\nGCC/CLANG | [![Build Status](https://travis-ci.org/Taymindis/lfstack.svg?branch=master)](https://travis-ci.org/Taymindis/lfstack)\n\nVS x64/x86 | [![Build status](https://ci.appveyor.com/api/projects/status/cojd0vosutha2yml/branch/master?svg=true)](https://ci.appveyor.com/project/Taymindis/lfstack/branch/master)\n\n\n## API \n```c\n\nextern int   lfstack_init(lfstack_t *lfstack);\nextern int   lfstack_push(lfstack_t *lfstack, void *value);\nextern void* lfstack_pop(lfstack_t *lfstack);\nextern void* lfstack_single_pop(lfstack_t *lfstack);\nextern void lfstack_destroy(lfstack_t *lfstack);\nextern size_t lfstack_size(lfstack_t *lfstack);\nextern void lfstack_sleep(unsigned int milisec);\n\n```\n\n\n## Example\n\n```c\n\nint* int_data;\nlfstack_t mystack;\n\nif (lfstack_init(\u0026mystack) == -1)\n\treturn -1;\n\n/** Wrap This scope in other threads **/\nint_data = (int*) malloc(sizeof(int));\nassert(int_data != NULL);\n*int_data = i++;\n/*PUSH*/\n while (lfstack_push(\u0026mystack, int_data) == -1) {\n    printf(\"ENQ Full ?\\n\");\n}\n\n/** Wrap This scope in other threads **/\n/*POP*/\nwhile  ( (int_data = lfstack_pop(\u0026mystack)) == NULL) {\n    printf(\"POP EMPTY ..\\n\");\n}\n\n// printf(\"%d\\n\", *(int*) int_data );\nfree(int_data);\n/** End **/\n\nlfstack_destroy(\u0026mystack);\n\n```\n\n\n#### If you are using single thread POP. Please use `lfstack_single_pop` to get better performance\n\n\n## Build and Installation\n\nFor linux OS, you may use cmake build, for other platforms, please kindly include the source code and header file into the project, e.g. VS2017, DEV-C++, Xcode\n\n```bash\nmkdir build\n\ncd build\n\ncmake ..\n\nmake\n\n./lfstack-example\n\nvalgrind --tool=memcheck --leak-check=full ./lfstack-example\n\nsudo make install\n\n\n```\n\n## continuously Test \n\nFor continuously test until N number, if you having any issue while testing, please kindly raise an issue\n\n```bash\n\n./keep-testing.sh\n\n```\n\n\n## Uninstallation\n\n```bash\ncd build\n\nsudo make uninstall\n\n```\n\n\n## You may also like lock free queue FIFO\n\n[lfqueue](https://github.com/Taymindis/lfqueue)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaymindis%2Flfstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaymindis%2Flfstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaymindis%2Flfstack/lists"}