-
MutexLock in src/__support/threads/mutex.h smells like [std::lock_guard](https://en.cppreference.com/w/cpp/thread/lock_guard). We should:
1. move it to src/__support/CPP/mutex.h (or better yet, just…
-
### Summary
The code below triggers `await_holding_lock`. However, the guards are dropped explicitly before each `.await` so there should not be a problem.
### Lint Name
await_holding_lock
…
-
This program does a `try_write()`, and if that fails due to another process holding the lock, prints a message, and then does a `write()` to wait until the lock is available:
```rust
use std::io::Wr…
-
| | |
|--------------------|----|
| Bugzilla Link | [PR40016](https://bugs.llvm.org/show_bug.cgi?id=40016) |
| Status | NEW |
| Importance | P enhancemen…
-
I have a piece of code where `rwlock.write()` hangs in one of the threads forever.
There are other threads that are calling both `rwlock.write()` and `rwlock.read()` on the same instance (behind `A…
-
| | |
| --- | --- |
| Bugzilla Link | [40016](https://llvm.org/bz40016) |
| Version | unspecified |
| OS | All |
| Attachments | [Repro case](https://user-images.githubusercontent.com/60944935/14375…
-
It would be great to have the equivalent to a lock_guard for the JGlobalRootLock service. Probably need two, a read and a write. Could we implement something that would support something like:
auto…
-
Consider playing with the names a little bit, to make them more reminiscent of the standard-library-only idiom, and/or more "narratively intuitive".
My main peeve here is with the names `WriteAcces…
-
Presently create_transaction() will re-use the same inputs when it is called multiple times in the same block.
eg, consider this loop:
```
let mut gsm = global_state_lock
.lock_gua…
-
For a mutex, I'd like `mutex_lock(foo)` to provide different resources than `mutex_lock(bar)`. This is easy if different functions are called for each mutex, but this is not possible because the speci…