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

Method setSharedError

gpcontrib/gpcloud/include/s3key_reader.h:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void setSharedError(bool sharedError) {
107 pthread_mutex_lock(&this->mutexErrorMessage);
108 if (this->sharedException == NULL) {
109 this->sharedException = std::current_exception();
110 }
111 this->sharedError = sharedError;
112 pthread_mutex_unlock(&this->mutexErrorMessage);
113 }
114
115 template <typename E>
116 void setSharedError(bool sharedError, const E& e) {

Callers 2

DownloadThreadFuncFunction · 0.45
setSharedErrorMethod · 0.45

Calls 2

pthread_mutex_lockFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected