summaryrefslogtreecommitdiff
path: root/src/vm/eventpipe.h
diff options
context:
space:
mode:
authorSung Yoon Whang <suwhang@microsoft.com>2019-04-24 15:09:00 -0700
committerAndrew Au <cshung@gmail.com>2019-05-01 18:33:08 -0700
commit30130c3f75c684f7863efe59c5ca322861716118 (patch)
treedaf577824659fb5cb157c6ea669643d2d35fa28f /src/vm/eventpipe.h
parent1144acad9bd92e0bd7485a0231ece95e016e5178 (diff)
downloadcoreclr-30130c3f75c684f7863efe59c5ca322861716118.tar.gz
coreclr-30130c3f75c684f7863efe59c5ca322861716118.tar.bz2
coreclr-30130c3f75c684f7863efe59c5ca322861716118.zip
Pulling in Noah's fix in event_pipe_lock_fix branch
Diffstat (limited to 'src/vm/eventpipe.h')
-rw-r--r--src/vm/eventpipe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vm/eventpipe.h b/src/vm/eventpipe.h
index 05a33a21a3..ed61fc31c3 100644
--- a/src/vm/eventpipe.h
+++ b/src/vm/eventpipe.h
@@ -333,6 +333,12 @@ public:
// Get next event.
static EventPipeEventInstance *GetNextEvent();
+#ifdef DEBUG
+ static bool IsLockOwnedByCurrentThread();
+ static bool IsBufferManagerLockOwnedByCurrentThread();
+#endif
+
+
template<class T>
static void RunWithCallbackPostponed(T f)
{