Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
lokar
8mo ago
0 comments
Share
The call to init should be idempotent
0 comments
default
newest
oldest
layer8
8mo ago
That can be difficult in a multi-threaded environment with dynamically loaded shared libraries. Or at least it isn’t something that’s generally expected to be guaranteed to work.
TuxSH
8mo ago
C++ "magic statics" handle that use case (but with hidden atomic flag load (& more) costs at each access)
lokar
OP
8mo ago
Ideally they would do the explicit init at startup before starting threads
j
/
k
navigate · click thread line to collapse