BSD Ports

devel/py-aiorwlock 1.5.0 DragonFly

Read write lock for asyncio

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
12.4 KiB, 61.7 KiB installed

Description

aiorwlock provides read write lock for asyncio . A RWLock maintains a pair of associated locks, one for read-only operations and one for writing. The read lock may be held simultaneously by multiple reader tasks, so long as there are no writers. The write lock is exclusive.

Whether or not a read-write lock will improve performance over the use of a mutual exclusion lock depends on the frequency that the data is read compared to being modified. For example, a collection that is initially populated with data and thereafter infrequently modified, while being frequently searched is an ideal candidate for the use of a read-write lock. However, if updates become frequent then the data spends most of its time being exclusively locked and there is little, if any increase in concurrency.

In the other systems

SystemPortVersion
DragonFlydevel/py-aiorwlock1.5.0
FreeBSDdevel/py-aiorwlock1.5.1
HardenedBSDdevel/py-aiorwlock1.5.1
GhostBSDdevel/py-aiorwlock1.5.1

Install

Binary package:

pkg install py311-aiorwlock

From DPorts:

cd /usr/dports/devel/py-aiorwlock && make install clean

Dependencies

Run dependencies 1

No port depends on this one.