2 * @file udp_request_thread_control.cpp
3 * @brief request used 1 threads. thread pooling unit is 1 thread control.
5 * L7VSD: Linux Virtual Server for Layer7 Load Balancing
6 * Copyright (C) 2009 NTT COMWARE Corporation.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 **********************************************************************/
25 #include "udp_request_thread_control.h"
29 udp_request_thread_control::udp_request_thread_control(request_ptr request) :
33 udp_request_thread_control::~udp_request_thread_control(void){
36 void udp_request_thread_control::start(void){
39 void udp_request_thread_control::stop(void){
42 void udp_request_thread_control::join(void){
45 boost::thread::id udp_request_thread_control::get_thread_id(){
46 return request_thread->get_id();
49 boost::shared_ptr< l7vs::udp_request > udp_request_thread_control::get_request(){
53 void udp_request_thread_control::run(void){