Move CommonNetwork from DEFAULT_CTX_ID

This commit is contained in:
obdev
2023-08-08 13:48:42 +00:00
committed by ob-robot
parent 1a4d800d7d
commit c46d7a39d8

View File

@ -263,7 +263,9 @@ private:
}
void* alloc_io_buffer(int64_t sz) { return direct_alloc(sz); }
void free_io_buffer(void* p) { direct_free(p); }
static void* direct_alloc(int64_t sz) { return ob_malloc(sz, ObModIds::OB_COMMON_NETWORK); }
static void* direct_alloc(int64_t sz) {
return ob_malloc(sz, SET_USE_UNEXPECTED_500(ObModIds::OB_COMMON_NETWORK));
}
static void direct_free(void* p) { ob_free(p); }
private:
int fd_;
@ -1008,7 +1010,9 @@ private:
}
}
}
static void* direct_alloc(int64_t sz) { return common::ob_malloc(sz, common::ObModIds::OB_COMMON_NETWORK); }
static void* direct_alloc(int64_t sz) {
return common::ob_malloc(sz, SET_USE_UNEXPECTED_500(common::ObModIds::OB_COMMON_NETWORK));
}
static void direct_free(void* p) { common::ob_free(p); }
int get_epfd(){return epfd_;}