No description
Find a file
2025-08-07 09:38:39 +03:00
docs try to fix the docs 2024-08-26 22:26:46 +03:00
examples done 2024-08-18 21:13:20 +03:00
sync try to fix the docs 2024-08-26 22:26:46 +03:00
tests fix warning 2024-08-18 21:38:02 +03:00
.gitignore docs 2022-08-05 09:24:29 +03:00
LICENSE Update copyright years 2025-08-07 09:38:39 +03:00
readme.rst fork of threading 2024-08-18 14:43:30 +03:00
sync.nim new version 2024-08-26 20:33:27 +03:00
sync.nimble v2.0.3 2024-08-26 20:48:47 +03:00

====================================================
                        Sync
====================================================

Useful synchronization primitives.

Higher-level synchronization objects
====================================

The following is an overview of the available synchronization objects:

- *Barrier*: Ensures multiple threads will wait for each other to reach a point in the program, before continuing execution all together.
- *Once*: Used for thread-safe, one-time initialization of a global variable.
- *RwLock*: Provides a mutual exclusion mechanism which allows multiple readers at the same time, while allowing only one writer at a time. In some cases, this can be more efficient than a mutex.
- *Semaphore*: Counting semaphore performing asynchronous permit aquisition.

API `documentation <https://planetis-m.github.io/sync/>`_