Re:Custom Allocators in Rust
by twic on Saturday April 08, 2023 @04:41PM
(#35497399)
Rust already has almost exactly this problem with keeping track of the current task in the async framework. As far as I know, the solution is indeed to use a thread local, and be scrupulous about updating it on task entry. It's ugly but it seems to work.
[ Parent
| on HN ]
There are no comments on this comment yet.