MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / inline_mysql_cond_init

Function inline_mysql_cond_init

include/mysql/psi/mysql_thread.h:1103–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1101}
1102
1103static inline int inline_mysql_cond_init(
1104#ifdef HAVE_PSI_COND_INTERFACE
1105 PSI_cond_key key,
1106#endif
1107 mysql_cond_t *that,
1108 const pthread_condattr_t *attr)
1109{
1110#ifdef HAVE_PSI_COND_INTERFACE
1111 that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond);
1112#else
1113 that->m_psi= NULL;
1114#endif
1115 return pthread_cond_init(&that->m_cond, attr);
1116}
1117
1118static inline int inline_mysql_cond_destroy(
1119 mysql_cond_t *that)

Callers

nothing calls this directly

Calls 1

pthread_cond_initFunction · 0.85

Tested by

no test coverage detected