(&self)
| 108 | |
| 109 | #[inline] |
| 110 | fn try_lock_exclusive(&self) -> bool { |
| 111 | if self.is_locked() { |
| 112 | false |
| 113 | } else { |
| 114 | self.state.set(WRITER_BIT); |
| 115 | true |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | unsafe fn unlock_exclusive(&self) { |
| 120 | self.state.set(0) |
no test coverage detected