summaryrefslogtreecommitdiff
path: root/src/vm/threads.h
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2018-01-29 18:49:51 -0800
committerGitHub <noreply@github.com>2018-01-29 18:49:51 -0800
commit6555bd3a1f6e6de0604e3065b4040c3a6ac1e44e (patch)
treeceea55c993c6103e0305b8dfbd503093e527323d /src/vm/threads.h
parentad7c1e85fa95a92d5cc58b93b6ca9e2b77ec86b6 (diff)
downloadcoreclr-6555bd3a1f6e6de0604e3065b4040c3a6ac1e44e.tar.gz
coreclr-6555bd3a1f6e6de0604e3065b4040c3a6ac1e44e.tar.bz2
coreclr-6555bd3a1f6e6de0604e3065b4040c3a6ac1e44e.zip
Add ActivityId Support to EventPipe (#16055)
Diffstat (limited to 'src/vm/threads.h')
-rw-r--r--src/vm/threads.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vm/threads.h b/src/vm/threads.h
index 57cb872d28..d55d1f8323 100644
--- a/src/vm/threads.h
+++ b/src/vm/threads.h
@@ -5256,6 +5256,10 @@ private:
// True if the thread was in cooperative mode. False if it was in preemptive when the suspension started.
Volatile<ULONG> m_gcModeOnSuspension;
+ // The activity ID for the current thread.
+ // An activity ID of zero means the thread is not executing in the context of an activity.
+ GUID m_activityId;
+
public:
EventPipeBufferList* GetEventPipeBufferList()
{
@@ -5297,6 +5301,20 @@ public:
{
m_gcModeOnSuspension = 0;
}
+
+ LPCGUID GetActivityId() const
+ {
+ LIMITED_METHOD_CONTRACT;
+ return &m_activityId;
+ }
+
+ void SetActivityId(LPCGUID pActivityId)
+ {
+ LIMITED_METHOD_CONTRACT;
+ _ASSERTE(pActivityId != NULL);
+
+ m_activityId = *pActivityId;
+ }
#endif // FEATURE_PERFTRACING
#ifdef FEATURE_HIJACK