| 21 | |
| 22 | |
| 23 | int 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 | |
| 36 | int MempoolWrapper::thread_initialize() { |
| 37 | im::fugue::memory::Region* region = new im::fugue::memory::Region(); |