JuliaLang/julia

add `Threads.@once`

Open

#51.716 aperta il 15 ott 2023

Vedi su GitHub
 (9 commenti) (1 reazione) (0 assegnatari)Julia (5773 fork)batch import
good first issuemultithreading

Metriche repository

Star
 (48.709 star)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

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

Guida contributor