Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  static_init_lazy.cc

  Sprache: C
 

#include "../common/platform.h"
#include "../common/static_init.h"
#include "static_init.h"

#if (BROTLI_STATIC_INIT != BROTLI_STATIC_INIT_LAZY)
#error "BROTLI_STATIC_INIT should be BROTLI_STATIC_INIT_LAZY"
#else
void BrotliEncoderLazyStaticInit(void) {
  /* From https://en.cppreference.com/w/cpp/language/storage_duration.html:
     ### Static block variables ###
     Block variables with static or thread (since C++11) storage duration are
     initialized the first time control passes through their declaration...
     On all further calls, the declaration is skipped...
     If multiple threads attempt to initialize the same static local variable
     concurrently, the initialization occurs exactly once...
     Usual implementations of this feature use variants of the double-checked
     locking pattern, which reduces runtime overhead for already-initialized
     local statics to a single non-atomic boolean comparison.
   */

  static bool ok = [](){
    BrotliEncoderLazyStaticInitInner();
    return true;
  }();
  if (!ok) BROTLI_CRASH();
}
#endif  /* BROTLI_STATIC_INIT_LAZY */

Messung V0.5 in Prozent
C=82 H=89 G=85

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002