From 625fea1e9913617569fb16651117bf336a8b3cd0 Mon Sep 17 00:00:00 2001 From: Lilith Oberhauser Date: Tue, 21 May 2024 11:35:46 +0300 Subject: [PATCH] recent updates Signed-off-by: Lilith Oberhauser --- CHANGELOG.md | 2 +- doc/api/vsync/atomic/await.h.md | 6 +++--- include/vsync/atomic/await.h | 7 +++---- template/include/vsync/atomic/await.h.in | 7 +++---- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08910fc..3b77155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ Please note that the version correlates to the internal libvsync, which is a sup what exists in open-s4c libvsync. -### [3.6.0-unreleased] +### [3.6.0] ### Added diff --git a/doc/api/vsync/atomic/await.h.md b/doc/api/vsync/atomic/await.h.md index df31c1e..c6882d3 100644 --- a/doc/api/vsync/atomic/await.h.md +++ b/doc/api/vsync/atomic/await.h.md @@ -40,12 +40,12 @@ node_t *next = vatomicptr_await_neq_acq(me->next, NULL); -The following example waits for the pointer me->next to be equal to pred. Once the condition is met, write NULL in me->next. The variable next contains the value that satisfied the condition. The operation has an release barrier. +The following example waits for the pointer me->next to be equal to pred. Once the condition is met, write NULL in me->next. The variable next contains the value that satisfied the condition. The operation has a release barrier. -``` -node_t *next = vatomicptr_await_eq_set_acq(me->next, pred, NULL); +```c +node_t *next = vatomicptr_await_eq_set_rel(me->next, pred, NULL); ``` diff --git a/include/vsync/atomic/await.h b/include/vsync/atomic/await.h index d1c0774..5e75b82 100644 --- a/include/vsync/atomic/await.h +++ b/include/vsync/atomic/await.h @@ -43,11 +43,10 @@ * * The following example waits for the pointer me->next to be equal to pred. * Once the condition is met, write NULL in me->next. The variable next contains - * the value that satisfied the condition. The operation has an release - * barrier. + * the value that satisfied the condition. The operation has a release barrier. * - * ``` - * node_t *next = vatomicptr_await_eq_set_acq(me->next, pred, NULL); + * ```c + * node_t *next = vatomicptr_await_eq_set_rel(me->next, pred, NULL); * ``` * * ### Return value diff --git a/template/include/vsync/atomic/await.h.in b/template/include/vsync/atomic/await.h.in index 32cf43a..4fc5011 100644 --- a/template/include/vsync/atomic/await.h.in +++ b/template/include/vsync/atomic/await.h.in @@ -38,11 +38,10 @@ * * The following example waits for the pointer me->next to be equal to pred. * Once the condition is met, write NULL in me->next. The variable next contains - * the value that satisfied the condition. The operation has an release - * barrier. + * the value that satisfied the condition. The operation has a release barrier. * - * ``` - * node_t *next = vatomicptr_await_eq_set_acq(me->next, pred, NULL); + * ```c + * node_t *next = vatomicptr_await_eq_set_rel(me->next, pred, NULL); * ``` * * ### Return value