mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
small fix
This commit is contained in:
parent
d8a77c3028
commit
fcb8f1563d
@ -45,7 +45,6 @@ public:
|
|||||||
_max_size(max_size),
|
_max_size(max_size),
|
||||||
_max_files(max_files),
|
_max_files(max_files),
|
||||||
_current_size(0),
|
_current_size(0),
|
||||||
_index(0),
|
|
||||||
mutex_(),
|
mutex_(),
|
||||||
_ofstream(_calc_filename(_base_filename, 0, _extension))
|
_ofstream(_calc_filename(_base_filename, 0, _extension))
|
||||||
{}
|
{}
|
||||||
@ -97,7 +96,6 @@ private:
|
|||||||
std::size_t _max_size;
|
std::size_t _max_size;
|
||||||
std::size_t _max_files;
|
std::size_t _max_files;
|
||||||
std::size_t _current_size;
|
std::size_t _current_size;
|
||||||
std::size_t _index;
|
|
||||||
std::mutex mutex_;
|
std::mutex mutex_;
|
||||||
std::ofstream _ofstream;
|
std::ofstream _ofstream;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ void pusher(Q* )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void testq(int size, int pushers, int poppers)
|
void testq(int size, int pushers /*int poppers*/)
|
||||||
{
|
{
|
||||||
|
|
||||||
active = true;
|
active = true;
|
||||||
@ -73,7 +73,7 @@ int main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
int qsize = atoi(argv[1]);
|
int qsize = atoi(argv[1]);
|
||||||
int pushers = atoi(argv[2]);
|
int pushers = atoi(argv[2]);
|
||||||
int poppers = atoi(argv[3]);
|
//int poppers = atoi(argv[3]);
|
||||||
|
|
||||||
//testq(qsize, pushers, poppers);
|
//testq(qsize, pushers, poppers);
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ int main(int argc, char* argv[])
|
|||||||
auto &logger = c11log::get_logger("async");
|
auto &logger = c11log::get_logger("async");
|
||||||
logger.add_sink(async);
|
logger.add_sink(async);
|
||||||
|
|
||||||
testq(qsize, pushers, poppers);
|
testq(qsize, pushers);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user