Liste des Groupes | Revenir à cl c++ |
Am 30.03.2025 um 20:20 schrieb Mr Flibble:Creating threads, socket-connections before main is a bad idea...? ;^o
But that is nevertheless what the Meyers Singleton involves. Static localWith current implemention all C++ runtimes govern all station initia-
initialisation has been threadsafe since C++11 and if performance is a
concern then you can always cache the result in a reference downstream in
any hot path that needs it.
lizations through a single mutex. That hurts if you have a constructor
that takes longer, maybe because of a socket-connection which the code
waits for.
Les messages affichés proviennent d'usenet.