-
I tried this code: ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=3097a0388ca33bda2efa385a2c5394e5))
```rust
#[tokio::main]
async fn main() {
let …
-
### The problem you're addressing (if any)
Not all checks pass in the `fwupdmgr security`:
```
Host Security ID: HSI:0 (v1.8.15)
HSI-1
✔ CSME override: Locked
✔ CSME v0:16.…
-
I tried this code:
```rust
#[deny(clippy::pedantic)]
pub async fn doesnt_work() {
use std::collections::HashSet;
use std::sync::Mutex;
use std::time::Duration;
let lock:…
-
There's a subtle race condition in `get_alloc_info_entry`.
`get_alloc_info_entry` protects the set of known allocations by grabbing the mutex protecting the same, but then returns a reference to the …
-
Suppose that you want to replace all cases where you lock and unlock a resource with a macro that guards the execution of a list of statements. There are multiple ways you can write this macro, but th…
-
We love `[[nodiscard]]` in the STL. We love it so much that we've marked over 3,000 functions, and gotten special compiler support to enable it in C++14 mode (even though it's a C++17 attribute). This…
-
### Describe the bug
In `ostd::sync::RwLock`, the `try_read()` method modifies the lock state non-atomically by first incrementing the reader count and, if unsuccessful, decrementing it. This creat…
-
Hi, thank you for writing this inspiring piece of code!
I have a question about the concurrency handling in the shout() function. To my understanding in the current implementation concurrent shout…
-
**Description**
More deadlocks between queue.submit and poll_all devices (both threads are running device.maintain).
queue.submit thread:
```
thread #107, name = 'WGPU'
frame #0: 0x00007f…
-
### Validation
- [X] I've read the [FAQ](https://github.com/xenia-canary/xenia-canary/wiki/FAQ).
- [X] The Xenia build used is from a canary branch. (not MLBS/AlexVS/master/pull requests, etc)
- …