OSDN Git Service

mutexをshared_ptrで管理
authorfujita <fujita@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Wed, 4 Feb 2009 09:10:56 +0000 (09:10 +0000)
committerfujita <fujita@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Wed, 4 Feb 2009 09:10:56 +0000 (09:10 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-shamshel@6602 1ed66053-1c2d-0410-8867-f7571e6e31d3

unit_tests/realserver_test/realserver_test.cpp

index 5d59f4a..191352a 100644 (file)
@@ -25,12 +25,12 @@ public:
        ~realserver_fake(){}
 
     void       set_active( const int in_active ){ 
-               boost::mutex::scoped_lockactive_mutex_ptr );
+               boost::mutex::scoped_lock lock( *active_mutex_ptr );
 
                nactive = in_active ;
        }
     void       set_inact( const int in_inact ){
-               boost::mutex::scoped_lockinact_mutex_ptr );
+               boost::mutex::scoped_lock lock( *inact_mutex_ptr );
 
                ninact = in_inact ;
        }