Skip to content

Commit

Permalink
add @lock doc (#50491)
Browse files Browse the repository at this point in the history
  • Loading branch information
xgdgsc authored Aug 25, 2023
1 parent dcb4060 commit 451de66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/src/base/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Base.unlock
Base.trylock
Base.islocked
Base.ReentrantLock
Base.@lock
```

## Channels
Expand Down
2 changes: 2 additions & 0 deletions doc/src/manual/multi-threading.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ julia> begin
unlock(lk)
end
end
julia> @lock lk use(a)
```
where `lk` is a lock (e.g. `ReentrantLock()`) and `a` data.

Expand Down

0 comments on commit 451de66

Please sign in to comment.