reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -60,7 +60,7 @@ struct Callable {
typedef void* (*pthread_handler_t)(void*);
class BaseWorker {
public:
public:
static const int64_t MAX_N_THREAD = 16;
struct WorkContext {
WorkContext() : callable_(NULL), idx_(0)
@ -78,7 +78,7 @@ class BaseWorker {
int64_t idx_;
};
public:
public:
BaseWorker() : n_thread_(0), thread_running_(false)
{}
~BaseWorker()
@ -86,7 +86,7 @@ class BaseWorker {
wait();
}
public:
public:
BaseWorker& set_thread_num(int64_t n)
{
n_thread_ = n;
@ -150,7 +150,7 @@ class BaseWorker {
return err;
}
protected:
protected:
int64_t n_thread_;
bool thread_running_;
WorkContext ctx_[MAX_N_THREAD];
@ -214,13 +214,13 @@ class RWT : public Callable {
int64_t idx_;
};
public:
public:
RWT() : n_read_thread_(0), n_write_thread_(0), n_admin_thread_(0)
{}
virtual ~RWT()
{}
public:
public:
int64_t get_thread_num()
{
return 1 + n_read_thread_ + n_write_thread_ + n_admin_thread_;
@ -296,7 +296,7 @@ class RWT : public Callable {
return 0;
}
protected:
protected:
int64_t n_read_thread_;
int64_t n_write_thread_;
int64_t n_admin_thread_;
@ -354,13 +354,13 @@ struct BaseConfig {
};
class FixedAllocator : public ObIAllocator {
public:
public:
FixedAllocator(char* buf, int64_t limit) : buf_(buf), limit_(limit), pos_(0)
{}
virtual ~FixedAllocator()
{}
public:
public:
void reset()
{
pos_ = 0;
@ -381,7 +381,7 @@ class FixedAllocator : public ObIAllocator {
UNUSED(ptr);
}
private:
private:
char* buf_;
int64_t limit_;
int64_t pos_;