fix compile warnings

This commit is contained in:
gm
2021-06-16 14:53:52 +08:00
committed by MizuhaHimuraki
parent ad8465b5ce
commit 8c4a2f26a6
79 changed files with 2878 additions and 2575 deletions

View File

@ -50,15 +50,9 @@ class ObTG<TGType::OB_THREAD_POOL> : public ITG {
public:
ObTG(lib::ThreadCountPair pair) : thread_cnt_(pair.get_thread_cnt())
{}
~ObTG()
{
destroy();
}
int64_t thread_cnt() override
{
return thread_cnt_;
}
int set_runnable(lib::TGRunnable& runnable)
~ObTG() { destroy(); }
int64_t thread_cnt() override { return thread_cnt_; }
int set_runnable(lib::TGRunnable &runnable) override
{
int ret = common::OB_SUCCESS;
if (th_ != nullptr) {