kernel/eka/include/drivers/rm_debug_eventhandler.h
branchRCL_3
changeset 21 e7d2d738d3c2
parent 0 a41df078684a
child 41 0ffb4e86fcc9
--- a/kernel/eka/include/drivers/rm_debug_eventhandler.h	Fri Mar 12 15:50:11 2010 +0200
+++ b/kernel/eka/include/drivers/rm_debug_eventhandler.h	Mon Mar 15 12:45:50 2010 +0200
@@ -27,14 +27,24 @@
 		TInt Start();
 		TInt Stop();
 		
+		inline void DRM_DebugEventHandler::LockDataAccess()
+		    {
+		    Kern::SemaphoreWait(*iProtectionLock);
+		    }
+
+		inline void DRM_DebugEventHandler::ReleaseDataAccess()
+		    {
+		    Kern::SemaphoreSignal(*iProtectionLock);
+		    }
+		
 	private:
 		static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis);
 		TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2);
 		TBool HandleSpecificEvent(TKernelEvent aType, TAny* a1, TAny* a2);
 		
 	private:
-		/** Lock serialising calls to event handler */
-		DSemaphore* iLock;
+		/** Used to serialise access data structures */
+		DSemaphore* iProtectionLock;
 
 		TBool iTracking;