Révision | 3de9bf1e20c924a0d511ad7575ebf4946ecc043c (tree) |
---|---|
l'heure | 2010-11-09 18:03:30 |
Auteur | 0809216 <0809216@1ed6...> |
Commiter | 0809216 |
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
@@ -1050,8 +1050,8 @@ void tcp_session::down_thread_run() | ||
1050 | 1050 | { |
1051 | 1051 | boost::mutex::scoped_lock lock(downthread_status_mutex); |
1052 | 1052 | downthread_status = DOWNTHREAD_ALIVE; |
1053 | + downthread_status_cond.notify_one(); | |
1053 | 1054 | } |
1054 | - downthread_status_cond.notify_one(); | |
1055 | 1055 | |
1056 | 1056 | //----Debug log---------------------------------------------------------------------- |
1057 | 1057 | if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) { |
@@ -1080,8 +1080,8 @@ void tcp_session::down_thread_run() | ||
1080 | 1080 | { |
1081 | 1081 | boost::mutex::scoped_lock lock(downthread_status_mutex); |
1082 | 1082 | downthread_status = DOWNTHREAD_ACTIVE; |
1083 | + downthread_status_cond.notify_one(); | |
1083 | 1084 | } |
1084 | - downthread_status_cond.notify_one(); | |
1085 | 1085 | |
1086 | 1086 | down_thread_next_call_function = down_thread_function_array[DOWN_FUNC_REALSERVER_RECEIVE]; |
1087 | 1087 |
@@ -1136,15 +1136,13 @@ void tcp_session::down_thread_run() | ||
1136 | 1136 | { |
1137 | 1137 | boost::mutex::scoped_lock lock(downthread_status_mutex); |
1138 | 1138 | downthread_status = DOWNTHREAD_ALIVE; |
1139 | + downthread_status_cond.notify_one(); | |
1139 | 1140 | } |
1140 | - downthread_status_cond.notify_one(); | |
1141 | - //----Debug log---------------------------------------------------------------------- | |
1142 | - //----Debug log---------------------------------------------------------------------- | |
1143 | 1141 | { |
1144 | 1142 | boost::mutex::scoped_lock lock(downthread_status_mutex); |
1145 | 1143 | downthread_status = DOWNTHREAD_SLEEP; |
1144 | + downthread_status_cond.notify_one(); | |
1146 | 1145 | } |
1147 | - downthread_status_cond.notify_one(); | |
1148 | 1146 | if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) { |
1149 | 1147 | boost::format formatter("Thread ID[%d] FUNC OUT down_thread_run"); |
1150 | 1148 | formatter % boost::this_thread::get_id(); |