Исправил вызов лога
This commit is contained in:
parent
973d32f484
commit
f6a6737b99
@ -565,7 +565,7 @@ void func(std::size_t n)
|
||||
{
|
||||
for(std::size_t j = 0; j < 100; ++j)
|
||||
{
|
||||
ulog.log("thread %, line %", n, j);
|
||||
ulog.log_info("thread %, line %", n, j);
|
||||
}
|
||||
|
||||
std::cout << "end of thread " << n << std::endl;
|
||||
@ -573,10 +573,10 @@ void func(std::size_t n)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
//::testing::InitGoogleTest(&argc, argv);
|
||||
//return RUN_ALL_TESTS();
|
||||
|
||||
//const std::size_t threadsCount = 2;
|
||||
const std::size_t threadsCount = 2;
|
||||
|
||||
//int one = 1;
|
||||
//double two = 2.5;
|
||||
@ -584,7 +584,6 @@ int main(int argc, char **argv)
|
||||
//ulog.log("Hello world!");
|
||||
//ulog.log("some string: %", "qwe!");
|
||||
|
||||
/*
|
||||
std::thread threads[threadsCount];
|
||||
for(std::size_t i = 0; i < threadsCount; ++i)
|
||||
{
|
||||
@ -596,6 +595,8 @@ int main(int argc, char **argv)
|
||||
for(std::size_t i = 0; i < threadsCount; ++i)
|
||||
threads[i].join();
|
||||
|
||||
return 0;
|
||||
*/
|
||||
int n = 0;
|
||||
std::cin >> n;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user