We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e15f3 commit 9f562f5Copy full SHA for 9f562f5
library/std/src/sys/sync/rwlock/solid.rs
@@ -82,7 +82,8 @@ impl RwLock {
82
83
#[inline]
84
pub unsafe fn downgrade(&self) {
85
- todo!()
+ // The SOLID platform does not support the `downgrade` operation for reader writer locks, so
86
+ // this function is simply a no-op as only 1 reader can read - the original writer.
87
}
88
89
library/std/src/sys/sync/rwlock/teeos.rs
@@ -43,5 +43,8 @@ impl RwLock {
43
44
45
46
- pub unsafe fn downgrade(&self) {}
+ pub unsafe fn downgrade(&self) {
47
+ // Since there is no difference between read-locked and write-locked on this platform, this
48
+ // function is a no-op.
49
+ }
50
0 commit comments