-
Apologies if this is a simple question, I'm just getting started with wgpu—
I'm quickly finding that it's a necessary pattern for every class that retains a `Handle` type wgpu object to:
- Overl…
-
I've tried searching the documentation and couldn't find anything. I've created a CRTP-based LinkedList and Node that might be useful for this project.
It allows you to also have dynamic storage…
-
## Feature Request
### Motivation
When a client RPC times out, tonic aborts the server task that is servicing that request. This takes the form of an .await never returning control to my code.
…
-
Ref: https://stackoverflow.com/questions/56050594/resource-aquisition-is-initialization-in-python/56050631
-
# Blueprint
It seems that some code parts like win/COM related functions contain a lot of places where object state is managed manually.
E.g. every time `BSTR` string or raw COM object pointer…
-
It would be nice if there were RAII wrappers for mutex and ciritical section. Using them could look like:
```
{
CiriticalSection cs;
// Do things inside critical section
}
```
Same for a …
-
Currently, the `Rust by Example/Scoping rules/RAII/11.rs` fails to verify with default CBMC values. See the example below:
```rust
#![allow(unused)]
// raii.rs
fn create_box() {
// Allocate…
-
Remove manual memory management and move to RAII when possible
Examples:
`_data` in `ResponseImplementation`. `malloc` and `free` should become `std::vector`.
https://github.com/spotify/NFHTTP/bl…
-
Currently we hold a lot of heap allocated pointers which we're just dropping on the floor when done with them. To fix that we should expose a type called `EfiBox` which is very similar to `Box`, but i…
gurry updated
6 years ago
-
Write up a proposal for a `co_using` keyword that introduces an asynchronous RAII scope exit.
**Form 1 - Anonymous scoped object**
```c++
co_using ($expr)
{
$body
}
```
translates to
```c…