Skip to content

Commit

Permalink
CPU 100% (gcc 4.8) => 로그 추가 (컴파일 최적화 피함)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkcubrick committed Apr 28, 2015
1 parent 4592b25 commit 9190aac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/http_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ namespace crow

for (int i = 0; i < concurrency_; i++)
{
while (timer_queue_pool_[i] == nullptr)
while (timer_queue_pool_[i] == nullptr) {
CROW_LOG_INFO
<< "This log prevents optimizing while condition:"
<< timer_queue_pool_[i];
std::this_thread::yield();
}
}

do_accept();
Expand Down

0 comments on commit 9190aac

Please sign in to comment.