Skip to content

Commit

Permalink
recent updates
Browse files Browse the repository at this point in the history
Signed-off-by: Lilith Oberhauser <lilith.oberhauser@huawei.com>
  • Loading branch information
lilith218 committed May 21, 2024
1 parent 95e6658 commit 625fea1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions doc/api/vsync/atomic/await.h.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```


Expand Down
7 changes: 3 additions & 4 deletions include/vsync/atomic/await.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions template/include/vsync/atomic/await.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 625fea1

Please sign in to comment.