--- 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;