• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

Revisiónf8d5d203a2b1407f90532675407450e132cc9b33 (tree)
Tiempo2012-08-30 16:57:03
AutorHiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

#29144 で無駄にtime waitしていたのを改善

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>

Cambiar Resumen

Diferencia incremental

--- a/l7vsd/src/tcp_session.cpp
+++ b/l7vsd/src/tcp_session.cpp
@@ -901,14 +901,15 @@ void tcp_session::up_thread_run()
901901 parent_dispatcher.post(boost::bind(&tcp_session::up_thread_client_ssl_socket_clear_socket_handler,this));
902902 boost::mutex::scoped_lock lock(upthread_status_mutex);
903903 while (unlikely(upthread_status == UPTHREAD_LOCK)) {
904- to_time(LOCKTIMEOUT, xt);
905- upthread_status_cond.timed_wait(lock, xt);
906904 tcp_thread_message *msg = up_thread_message_que.pop();
907905 if (msg) { // message is alive.
908906 msg->message(MESSAGE_PROC);
909907 delete msg;
910908 msg = NULL;
911- }
909+ }else{
910+ to_time(LOCKTIMEOUT, xt);
911+ upthread_status_cond.timed_wait(lock, xt);
912+ }
912913 } // lockmode while loop end.
913914 }
914915