amethyst / amethyst/shred

Rewrite `ThreadPoolWrapper` to use atomic pointer

未关闭
#162 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Rust
星标
250
派生
65
PR 合并指标
30 天内没有已合并 PR

描述

There seems to be no need to have a lock around an option wrapping an `Arc` - since we have an (allocated) `Arc`, we can just use its raw pointer for `AtomicPtr`, and swap it out whenever the pool should be changed.

cc @AndreaCatania

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。