Skip to content

A readers-prefered Read-Write lock written in C using POSIX semaphores.

License

Notifications You must be signed in to change notification settings

JasonPap/ReadWriteLock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A portable Read-Write lock in C

This project aims to create a easy to use and portable read-write lock for C. This is implemented by using POSIX semaphores and "hide" the struct declaration to avoid missuse of the API provided.

This lock is readers-prefered, meaning that a writer will have to wait for every reader to finish before being able to acquire the lock. For more information on that see here.

I'm currently trying to make the destruction of the lock thread-safe. Until that is achieved the user of the API is responsible for releasing any lock before calling rwl_destroy().

About

A readers-prefered Read-Write lock written in C using POSIX semaphores.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages