Hide add_self_to_cgroup and set_group_id

This commit is contained in:
zhjc1124
2024-08-22 03:29:58 +00:00
committed by ob-robot
parent 2677fd458b
commit b72d6286bd
29 changed files with 306 additions and 246 deletions

View File

@ -24,9 +24,9 @@ using namespace oceanbase::observer;
void *thread_func(void *args)
{
ASSERT_EQ(OB_SUCCESS, cg_ctrl.add_self_to_cgroup(1001));
ASSERT_EQ(OB_SUCCESS, cg_ctrl.add_self_to_cgroup_(1001));
sleep(3);
ASSERT_EQ(OB_SUCCESS, cg_ctrl.remove_self_from_cgroup(1001));
ASSERT_EQ(OB_SUCCESS, cg_ctrl.add_self_to_cgroup_(1001));
return nullptr;
}