MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ErrorCtx_Init

Function ErrorCtx_Init

src/errors/errors.c:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18//------------------------------------------------------------------------------
19
20bool ErrorCtx_Init(void) {
21 int res = pthread_key_create(&_tlsErrorCtx, NULL);
22 ASSERT(res == 0);
23
24 return (res == 0);
25}
26
27ErrorCtx *ErrorCtx_Get(void) {
28 ErrorCtx *ctx = pthread_getspecific(_tlsErrorCtx);

Callers 2

RedisModule_OnLoadFunction · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by 1

setupFunction · 0.68