Update contrib.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Purpose: Kernel-side tracking of process state
18 #ifndef D_TARGET_PROCESS_H
19 #define D_TARGET_PROCESS_H
21 #include "d_debug_agent.h"
23 // Debug Process Tracker class
24 class DTargetProcess : public DBase
30 static TInt Compare(const DTargetProcess& aFirst, const DTargetProcess& aSecond);
32 TInt SetProcessName(const TDesC8& aProcessName);
34 const TPtr8& ProcessName(void);
36 TInt AddAgent(const TUint64 aAgentId);
38 TInt RemoveAgent(TUint64 aAgentId);
40 DDebugAgent* operator[](TInt aIndex);
42 DDebugAgent* Agent(TUint64 aAgentId);
44 TInt AgentCount(void);
45 TInt ResumeThread(DThread* aThread);
46 TInt SuspendThread(DThread* aThread, TBool aFreezeThread=EFalse);
47 TBool CheckSuspended(DThread* aThread) const;
49 TBool HasSuspendedThreads() const;
50 void NotifyEvent(const TDriverEventInfo& aEventInfo);
53 TInt ResumeFrozenThread(NThread& aThread);
54 TInt ResumeSuspendedThread(DThread* aThread);
56 TInt DoSuspendThread(DThread* aThread);
61 RPointerArray<DDebugAgent> iAgentList;
63 RArray<TUint64> iSuspendedThreads;
65 RPointerArray<NFastSemaphore> iFrozenThreadSemaphores;
69 #endif // D_TARGET_PROCESS_H