This commit is contained in:
gabime
2018-05-20 18:01:47 +03:00
parent 8e429ae5d6
commit 8bd16feb36
3 changed files with 21 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
threads = atoi(argv[2]);
if (argc > 3)
queue_size = atoi(argv[3]);
cout << "*******************************************************************************\n";
cout << "Single thread, " << format(howmany) << " iterations" << endl;
cout << "*******************************************************************************\n";

View File

@@ -105,7 +105,7 @@ int main(int, char *[])
void async_example()
{
size_t q_size = 4096;
size_t q_size = 4096;
spdlog::set_async_mode(q_size);
auto async_file = spd::daily_logger_st("async_file_logger", "logs/async_log.txt");
for (int i = 0; i < 100; ++i)