This commit is contained in:
Patrick Pelissier committed 2017-10-11 22:21:21 +02:00
1 parent 2700ccba1a
commit 23694d69f5
1 file changed
+2 -2
+2 -2
View File
@@ -2021,9 +2021,9 @@ This header is for created snapshots.
#### SNAPSHOT\_DEF(name, type[, oplist])
Define the snapshot 'name##\_t' and its associated methods as "static inline" functions.
A snapshot is a mechanism to allows a single consumer thread and a single produce thread,
A snapshot is a mechanism to allows a single consumer thread and a single producer thread,
**working at different speeds**, to exchange messages in a reliable and thread safe way
(the message is passed atomatically).
(the message is passed atomatically from a thread point of view).
In practice, it is implemented using a triple buffer.
This container is designed to be used for easy synchronization inter-threads (and the variable shall be a global one).