Skip to content

Commit

Permalink
Use unicode arrows and lines to draw diagram in async_rw_mutex docume…
Browse files Browse the repository at this point in the history
…ntation example

- Looks prettier
- Avoids warnings about escaping newlines in comments with \
  • Loading branch information
msimberg committed Dec 9, 2024
1 parent b6e5ed6 commit 9bac222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/documentation/async_rw_mutex_documentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ int main(int argc, char* argv[])
// Below we will access the value proteced by the mutex with the
// following implied dependency graph:
//
// /--> ro_access1 --\
// rw_access1 +---> ro_access2 ---+---> rw_access2
// \--> ro_access3 --/
// ┌──► ro_access1 ──┐
// rw_access1 ──┼──► ro_access2 ──┼──► rw_access2
// └──► ro_access3 ──┘
//
// Note that the senders themselves don't depend on each other
// explicitly as above, but the senders provided by the mutex enforce
Expand Down

0 comments on commit 9bac222

Please sign in to comment.