MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / initialize

Method initialize

core/predictor/framework/memory.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23int MempoolWrapper::initialize() {
24 if (THREAD_KEY_CREATE(&_bspec_key, NULL) != 0) {
25 LOG(ERROR) << "unable to create thread_key of thrd_data";
26 return -1;
27 }
28 if (THREAD_SETSPECIFIC(_bspec_key, NULL) != 0) {
29 LOG(ERROR) << "failed initialize bsepecific key to null";
30 return -1;
31 }
32
33 return 0;
34}
35
36int MempoolWrapper::thread_initialize() {
37 im::fugue::memory::Region* region = new im::fugue::memory::Region();

Callers 2

TEST_FFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36