Skip to content

Commit

Permalink
Update barrier_arrive_tx.md docs (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg authored Nov 24, 2023
1 parent 8e6da27 commit 5191bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cuda::device::barrier_arrive_tx(
ptrdiff_t transaction_count_update);
```

Arrives at a barrier in shared memory, updating both the arrival count and
Arrives at a barrier in shared memory, decrementing the arrival count and incrementing the expected
transaction count.

## Preconditions
Expand All @@ -29,7 +29,7 @@ transaction count.
## Effects

* This function constructs an arrival_token object associated with the phase
synchronization point for the current phase. Then, decrements the expected
synchronization point for the current phase. Then, decrements the
arrival count by `arrive_count_update` and increments the expected transaction
count by `transaction_count_update`.
* This function executes atomically. The call to this function strongly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void cuda::device::barrier_expect_tx(
ptrdiff_t transaction_count_update);
```

Updates the expected transaction count of a barrier in shared memory.
Increments the expected transaction count of a barrier in shared memory.

## Preconditions

Expand Down

0 comments on commit 5191bc5

Please sign in to comment.