MCPcopy Create free account
hub / github.com/VCVRack/Rack / init

Function init

src/network.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70void init() {
71 // Because OpenSSL is compiled with no-pinshared, we need to initialize without defining atexit(), since we want to destroy it when libRack is unloaded.
72 OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL);
73 // curl_easy_init() calls this automatically, but it's good to make sure this is done on the main thread before other threads are spawned.
74 // https://curl.haxx.se/libcurl/c/curl_easy_init.html
75 curl_global_init(CURL_GLOBAL_ALL);
76}
77
78
79void destroy() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected