• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision3de9bf1e20c924a0d511ad7575ebf4946ecc043c (tree)
l'heure2010-11-09 18:03:30
Auteur0809216 <0809216@1ed6...>
Commiter0809216

Message de Log

changed notify call

git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10429 1ed66053-1c2d-0410-8867-f7571e6e31d3

Change Summary

Modification

--- a/l7vsd/src/tcp_session.cpp
+++ b/l7vsd/src/tcp_session.cpp
@@ -1050,8 +1050,8 @@ void tcp_session::down_thread_run()
10501050 {
10511051 boost::mutex::scoped_lock lock(downthread_status_mutex);
10521052 downthread_status = DOWNTHREAD_ALIVE;
1053+ downthread_status_cond.notify_one();
10531054 }
1054- downthread_status_cond.notify_one();
10551055
10561056 //----Debug log----------------------------------------------------------------------
10571057 if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
@@ -1080,8 +1080,8 @@ void tcp_session::down_thread_run()
10801080 {
10811081 boost::mutex::scoped_lock lock(downthread_status_mutex);
10821082 downthread_status = DOWNTHREAD_ACTIVE;
1083+ downthread_status_cond.notify_one();
10831084 }
1084- downthread_status_cond.notify_one();
10851085
10861086 down_thread_next_call_function = down_thread_function_array[DOWN_FUNC_REALSERVER_RECEIVE];
10871087
@@ -1136,15 +1136,13 @@ void tcp_session::down_thread_run()
11361136 {
11371137 boost::mutex::scoped_lock lock(downthread_status_mutex);
11381138 downthread_status = DOWNTHREAD_ALIVE;
1139+ downthread_status_cond.notify_one();
11391140 }
1140- downthread_status_cond.notify_one();
1141- //----Debug log----------------------------------------------------------------------
1142- //----Debug log----------------------------------------------------------------------
11431141 {
11441142 boost::mutex::scoped_lock lock(downthread_status_mutex);
11451143 downthread_status = DOWNTHREAD_SLEEP;
1144+ downthread_status_cond.notify_one();
11461145 }
1147- downthread_status_cond.notify_one();
11481146 if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
11491147 boost::format formatter("Thread ID[%d] FUNC OUT down_thread_run");
11501148 formatter % boost::this_thread::get_id();