Исправил вызов лога

This commit is contained in:
selim 2014-09-11 08:20:13 +04:00
parent 973d32f484
commit f6a6737b99

View File

@ -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)
{
@ -595,7 +594,9 @@ int main(int argc, char **argv)
for(std::size_t i = 0; i < threadsCount; ++i)
threads[i].join();
int n = 0;
std::cin >> n;
return 0;
*/
return 0;
}