AllenNeuralDynamics / AllenNeuralDynamics/brainwasher

make thread-exclusive method access decorator more generalizeable

未关闭
#32 0 条评论 0 个 reaction 已指派 1 人 已被 @Poofjunior 认领 在 GitHub 查看
slosher
主要语言
Python
星标
0
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

To make the brainwasher thread-safe, we attach a `@lock_flowpath` decorator to all methods that alter the liquid flowpath that cannot be called from multiple threads at once.

We should rename this function to something more generic (maybe `@thread_exclusive_method`?) and put it somewhere where it can be reused by other instruments.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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