JuliaLang/julia

add `Threads.@once`

Open

#51,716 创建于 2023年10月15日

在 GitHub 查看
 (9 评论) (1 反应) (0 负责人)Julia (5,773 fork)batch import
good first issuemultithreading

仓库指标

Star
 (48,709 star)
PR 合并指标
 (平均合并 20天 6小时) (30 天内合并 157 个 PR)

描述

It might be useful to have a Threads.@once macro that guarantees a line of code will only be executed once, either globally or in a given scope, a la C++ call_once or GCD dispatch_once

贡献者指南