MCPcopy Create free account
hub / github.com/apache/cloudberry / pq_threadidcallback

Function pq_threadidcallback

src/interfaces/libpq/fe-secure-openssl.c:605–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 */
604
605static unsigned long
606pq_threadidcallback(void)
607{
608 /*
609 * This is not standards-compliant. pthread_self() returns pthread_t, and
610 * shouldn't be cast to unsigned long, but CRYPTO_set_id_callback requires
611 * it, so we have to do it.
612 */
613 return (unsigned long) pthread_self();
614}
615
616static pthread_mutex_t *pq_lockarray;
617

Callers

nothing calls this directly

Calls 1

pthread_selfFunction · 0.85

Tested by

no test coverage detected