OSDN Git Service

down 側の CPU_SET 修正
authortanuma <tanuma@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 30 Jun 2009 10:29:22 +0000 (10:29 +0000)
committertanuma <tanuma@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Tue, 30 Jun 2009 10:29:22 +0000 (10:29 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-shamshel-refine@7969 1ed66053-1c2d-0410-8867-f7571e6e31d3

src/session_thread_control.cpp

index 89f20f0..22c06af 100644 (file)
@@ -98,7 +98,7 @@ void  session_thread_control::downstream_run(){
        //numが1以上なら、その数だけCPU_SETする
        if( 0 < num_of_core_uses ){
                CPU_ZERO( &mask );
-               for( int i = 1; i < num_of_core_uses; ++i ){
+               for( int i = 0; i < num_of_core_uses; ++i ){
                        CPU_SET( static_cast<int>( i ), &mask );
                }
                sched_setaffinity( 0, sizeof( cpu_set_t ), &mask );