#locks #processes

namaste

Simple locks between processes

22 releases (breaking)

0.17.0 Jan 29, 2021
0.15.2 Aug 12, 2019
0.14.0 Jul 9, 2019
0.5.1 Mar 31, 2019

#162 in Concurrency

Download history 3/week @ 2021-06-27 2/week @ 2021-07-04 3/week @ 2021-07-11 23/week @ 2021-07-18 25/week @ 2021-07-25 48/week @ 2021-08-01 3/week @ 2021-08-08 26/week @ 2021-08-15 4/week @ 2021-08-22 3/week @ 2021-08-29 1/week @ 2021-09-05 2/week @ 2021-09-12 1/week @ 2021-09-19 22/week @ 2021-09-26 1/week @ 2021-10-03 23/week @ 2021-10-10

119 downloads per month
Used in r1

Custom license

19KB
286 lines

Namaste




lib.rs:

Namaste

Project

Features

Handling locks amongst processes.

Design

Identifier

An identifier is a non-empty byte array. The array length must be smaller than 108.

Namaste can be used to lock an ID.

  • On Linux, it uses abstract sockets (see unix(7)).
  • On other Unix systems, it uses file locks.

Frequently Answered Questions

Why not Unix Domain Socket?

UDS has a good design, but its implementation has some serious flaws:

  • Already-bound file path can be deleted. Any new binding to that path will silently take control of current one.

Why file locks?

Files can still be deleted even when locked. But, that's the only way that other systems support.

Dependencies

~30KB