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

Function thread_setup

gpcontrib/gpcloud/src/gpreader.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34int thread_setup(void) {
35 mutex_buf = new pthread_mutex_t[CRYPTO_num_locks()];
36 if (mutex_buf == NULL) {
37 return 0;
38 }
39 for (int i = 0; i < CRYPTO_num_locks(); i++) {
40 MUTEX_SETUP(mutex_buf[i]);
41 }
42 CRYPTO_set_id_callback(gpcloud_id_function);
43 CRYPTO_set_locking_callback(gpcloud_locking_function);
44 return 1;
45}
46
47int thread_cleanup(void) {
48 if (mutex_buf == NULL) {

Callers 5

TESTFunction · 0.85
s3_importFunction · 0.85
s3_exportFunction · 0.85
downloadS3Function · 0.85
uploadS3Function · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68