]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix exception thrown by std::shared_lock::unlock() [PR112089]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Oct 2023 15:51:30 +0000 (16:51 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Oct 2023 20:10:47 +0000 (21:10 +0100)
commit0c305f3dec9a992dd775a3b9607b7b1e8c051859
treec2f64672b8d761dd8fe3fcd9760c798222495736
parent7d06b29f8145805f33a33fb54a7d69acf31cecd6
libstdc++: Fix exception thrown by std::shared_lock::unlock() [PR112089]

The incorrect errc constant here looks like a copy&paste error.

libstdc++-v3/ChangeLog:

PR libstdc++/112089
* include/std/shared_mutex (shared_lock::unlock): Change errc
constant to operation_not_permitted.
* testsuite/30_threads/shared_lock/locking/112089.cc: New test.
libstdc++-v3/include/std/shared_mutex
libstdc++-v3/testsuite/30_threads/shared_lock/locking/112089.cc [new file with mode: 0644]