OSDN Git Service

不要クラスの削除
authoryamada <yamada@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 18 Dec 2009 00:34:06 +0000 (00:34 +0000)
committeryamada <yamada@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 18 Dec 2009 00:34:06 +0000 (00:34 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel@9232 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7vsd/include/tcp_thread_message_que.h [deleted file]
l7vsd/src/tcp_thread_message_que.cpp [deleted file]

diff --git a/l7vsd/include/tcp_thread_message_que.h b/l7vsd/include/tcp_thread_message_que.h
deleted file mode 100644 (file)
index 3a91dc5..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*!
- *    @file    tcp_thread_message_que.h
- *    @brief    tcp session thread message queue class
- *
- * L7VSD: Linux Virtual Server for Layer7 Load Balancing
- * Copyright (C) 2009  NTT COMWARE Corporation.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- **********************************************************************/
-
-#ifndef TCP_THREAD_MESSAGE_QUE_H
-#define TCP_THREAD_MESSAGE_QUE_H
-
-#include <cstdlib>
-#include <queue>
-#include <boost/thread/mutex.hpp>
-
-#include "wrlock.h"
-
-namespace l7vs{
-//!    @class    tcp_thread_message
-//! @brief    tcp_thread_message class name define.
-    class tcp_thread_message;
-    
-//!    @class    data_buff_base
-//! @brief    this class is tcp_thread_message object queue.
-    class tcp_thread_message_que : private boost::noncopyable{
-        public:
-            //!    queue message type
-            typedef boost::shared_ptr<tcp_thread_message> tcp_thread_message_ptr;
-            
-            //! construcor
-            tcp_thread_message_que();
-            //! destructor
-            ~tcp_thread_message_que();
-            //! push queue
-            //! @param[in]    push message
-            void push(tcp_thread_message_ptr message);
-            //! front queue
-            tcp_thread_message_ptr front();
-            //! queue check empty
-            bool empty();
-            //! clear queue
-            void clear();
-        protected:
-            //! message queue
-            std::queue< tcp_thread_message_ptr > message_que;
-            //! queue access mutex
-            wr_mutex que_mutex;
-            
-    };// class tcp_thread_message_que
-}// namespace l7vs
-
-#endif//TCP_THREAD_MESSAGE_H
diff --git a/l7vsd/src/tcp_thread_message_que.cpp b/l7vsd/src/tcp_thread_message_que.cpp
deleted file mode 100644 (file)
index 6ab778f..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*!
- *    @file    tcp_thread_message_que.cpp
- *    @brief    tcp session thread message queue class
- *
- * L7VSD: Linux Virtual Server for Layer7 Load Balancing
- * Copyright (C) 2009  NTT COMWARE Corporation.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- **********************************************************************/
-
-#include "tcp_thread_message_que.h"
-#include "tcp_thread_message.h"
-#include "logger.h"
-namespace l7vs{
-
-    //! construcor
-    tcp_thread_message_que::tcp_thread_message_que(){
-    }
-
-    //! destructor
-    tcp_thread_message_que::~tcp_thread_message_que(){
-    }
-
-    //! push queue
-    //! @param[in]    push message
-    void tcp_thread_message_que::push(tcp_thread_message_ptr message){
-        rw_scoped_lock scope_lock(que_mutex);
-        
-        message_que.push(message);
-    }
-
-    //! front queue
-    tcp_thread_message_que::tcp_thread_message_ptr tcp_thread_message_que::front(){
-        rw_scoped_lock scope_lock(que_mutex);
-
-        tcp_thread_message_ptr res;
-        if(!message_que.empty()){
-            res= message_que.front();
-            message_que.pop();
-        }
-        
-        return res;
-    }
-
-    //! queue check empty
-    bool tcp_thread_message_que::empty(){
-        return message_que.empty();
-    }
-
-    //! clear queue
-    void tcp_thread_message_que::clear(){
-        rw_scoped_lock scope_lock(que_mutex);
-        
-        while(message_que.empty() == false)
-            message_que.pop();    
-    
-    }    
-    
-}// namespace l7vs