{"id":21333754,"url":"https://github.com/invenia/readwritelocks.jl","last_synced_at":"2025-10-07T02:53:37.913Z","repository":{"id":47716710,"uuid":"44768397","full_name":"invenia/ReadWriteLocks.jl","owner":"invenia","description":"A simple read-write lock for Julia","archived":false,"fork":false,"pushed_at":"2023-04-26T16:21:19.000Z","size":23,"stargazers_count":5,"open_issues_count":9,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T18:39:41.186Z","etag":null,"topics":["concurrency","julia","locking","threading"],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/invenia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-22T19:29:35.000Z","updated_at":"2023-07-28T13:45:30.000Z","dependencies_parsed_at":"2022-08-30T01:50:59.165Z","dependency_job_id":null,"html_url":"https://github.com/invenia/ReadWriteLocks.jl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/invenia/ReadWriteLocks.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FReadWriteLocks.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FReadWriteLocks.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FReadWriteLocks.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FReadWriteLocks.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invenia","download_url":"https://codeload.github.com/invenia/ReadWriteLocks.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invenia%2FReadWriteLocks.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712455,"owners_count":26032738,"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-10-07T02:00:06.786Z","response_time":59,"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":["concurrency","julia","locking","threading"],"created_at":"2024-11-21T23:16:03.069Z","updated_at":"2025-10-07T02:53:37.877Z","avatar_url":"https://github.com/invenia.png","language":"Julia","readme":"# ReadWriteLocks\n\n[![CI](https://github.com/Invenia/ReadWriteLocks.jl/workflows/CI/badge.svg)](https://github.com/Invenia/ReadWriteLocks.jl/actions?query=workflow%3ACI)\n[![codecov.io](https://codecov.io/github/invenia/ReadWriteLocks.jl/coverage.svg?branch=master)](https://codecov.io/github/invenia/ReadWriteLocks.jl?branch=master)\n\n## Usage\n\n```julia\nusing ReadWriteLocks\n\n# The type provided by this package is ReadWriteLock.\n# It has a single constructor.\nrwlock = ReadWriteLock()\n\n# This lock provides access to a read lock and a write lock\nrlock = read_lock(rwlock)\nwlock = write_lock(rwlock)\n\n# To acquire a read lock:\nlock!(rlock)\n\n# To release a read lock:\nunlock!(rlock)\n\n#=\nWrite locks provide the same interface.\n\nYou can acquire any number of read locks at a time.\nA read lock will block if a write lock has been acquired.\nA write lock will block if a read lock or write lock has been acquired.\n=#\n```\n\n## Compatibility\n\nThis package is meant to be compatible with Julia's lightweight threads (where it is not strictly necessary) and true multithreaded Julia, in order to facilitate unified codebases that support future thread-safety.\n\n## License\n\nReadWriteLocks.jl is provided under the MIT \"Expat\" License.\n\n## Citation\n\nThis is a reimplementation of the original Java source from:\n\u003e M. Herlihy and N. Shavit, “8.3.1 Simple Readers-Writers Lock,” in The art of multiprocessor programming, revised first edition, Rev. 1st., Waltham, Massachusetts: Morgan Kaufmann, 2012, pp. 184–185.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvenia%2Freadwritelocks.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvenia%2Freadwritelocks.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvenia%2Freadwritelocks.jl/lists"}