memspy/Driver/Kernel/Source/SubChannels/MemSpyDriverLogChanMisc.cpp
branchRCL_3
changeset 49 7fdc9a71d314
parent 44 52e343bb8f80
child 59 8ad140f3dd41
equal deleted inserted replaced
46:e26895079d7c 49:7fdc9a71d314
   169         // Must impersonate a SID:
   169         // Must impersonate a SID:
   170 	    NKern::ThreadEnterCS();
   170 	    NKern::ThreadEnterCS();
   171 
   171 
   172         DObjectCon* container = Kern::Containers()[ EProcess ];
   172         DObjectCon* container = Kern::Containers()[ EProcess ];
   173         container->Wait();
   173         container->Wait();
   174         NKern::LockSystem();
       
   175 
   174 
   176         const TInt count = container->Count();
   175         const TInt count = container->Count();
   177         for(TInt i=0; i<count; i++)
   176         for(TInt i=0; i<count; i++)
   178             {
   177             {
   179             DObject* object = (*container)[ i ];
   178             DObject* object = (*container)[ i ];
   191                     }
   190                     }
   192 
   191 
   193                 }
   192                 }
   194             }
   193             }
   195 
   194 
   196         NKern::UnlockSystem();
       
   197         container->Signal();
   195         container->Signal();
   198 
       
   199     	NKern::ThreadLeaveCS();
   196     	NKern::ThreadLeaveCS();
   200         }
   197         }
   201 
   198 
   202     DThread& thread = ClientThread();
   199     DThread& thread = ClientThread();
   203     DProcess* myOwningProcess = threadAdaption.GetOwningProcess( thread );
   200     DProcess* myOwningProcess = threadAdaption.GetOwningProcess( thread );