OSDN Git Service

ticket #450
authortanuma <tanuma@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Thu, 28 Jan 2010 06:07:27 +0000 (06:07 +0000)
committertanuma <tanuma@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Thu, 28 Jan 2010 06:07:27 +0000 (06:07 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel@9925 1ed66053-1c2d-0410-8867-f7571e6e31d3

l7vsd/include/session_thread_control.h

index efb374b..067f213 100644 (file)
@@ -111,30 +111,15 @@ public:
             num_of_core_uses = 0;
 
         session.reset( ptr );
-        upthread.reset( new boost::thread( &session_thread_control::upstream_run, this ) );    //! upstream thread create
-        downthread.reset( new boost::thread( &session_thread_control::downstream_run, this ) );//! downstream thread create
 
-        //pthread_setschedparam
-        int    retval, sched_policy;
-        sched_param    scheduler_param;
-        int_val    = pthread_getschedparam( upthread->native_handle(), &sched_policy, &scheduler_param );
-        if( SCHED_FIFO == sched_algorithm ){
-            scheduler_param.__sched_priority    = sched_priority;
-            sched_policy    = SCHED_FIFO;
-        }else if( SCHED_RR == sched_algorithm ){
-            scheduler_param.__sched_priority    = sched_priority;
-            sched_policy    = SCHED_RR;
-        }else if( SCHED_BATCH == sched_algorithm ){
-            sched_policy    = SCHED_BATCH;
-        }
-        if( 0 <= sched_algorithm ){
-            retval            = pthread_setschedparam( upthread->native_handle(), sched_algorithm, &scheduler_param );
-            retval            = pthread_setschedparam( downthread->native_handle(), sched_algorithm, &scheduler_param );
-        }
     }
     //! destractor
     ~session_thread_control(){
     }
+    
+    //! create up down thread
+    void start_thread();
+    
     //! session shared ptr getter
     //! @return session shared ptr
     session_ptr        get_session(){    return session; }