diff options
author | Carl Lerche <me@carllerche.com> | 2020-01-03 10:34:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-03 10:34:15 -0800 |
commit | efcbf9613f2d5048550f9c828e3be422644f1391 (patch) | |
tree | f8c77a9d21c57f80ed989d16839acffe850baf77 /tokio/src/sync/rwlock.rs | |
parent | 3736467dbb74ea6d14091cf1cac3ce08e1fcb911 (diff) |
sync: add batch op support to internal semaphore (#2004)
Extend internal semaphore to support batch operations. With this PR,
consumers of the semaphore are able to atomically request more than one
permit. This is useful for implementing a RwLock.
Diffstat (limited to 'tokio/src/sync/rwlock.rs')
0 files changed, 0 insertions, 0 deletions