MCPcopy Create free account
hub / github.com/IronsDu/brynet / cryptoSetThreadIDCallback

Function cryptoSetThreadIDCallback

include/brynet/net/SSLHelper.hpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29#ifndef CRYPTO_THREADID_set_callback
30static void cryptoSetThreadIDCallback(CRYPTO_THREADID* id)
31{
32#ifdef BRYNET_PLATFORM_WINDOWS
33 CRYPTO_THREADID_set_numeric(id,
34 static_cast<unsigned long>(GetCurrentThreadId()));
35#elif defined BRYNET_PLATFORM_LINUX || defined BRYNET_PLATFORM_DARWIN || defined BRYNET_PLATFORM_FREEBSD
36 CRYPTO_THREADID_set_numeric(id,
37 static_cast<unsigned long>(pthread_self()));
38#endif
39}
40#endif
41
42#ifndef CRYPTO_set_locking_callback

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected