// No events were available, sleep until more are available
waitEvent->Wait(INFINITE, FALSE);
}
-
+
// Wait until it's time to sample again.
PlatformSleep();
}
THROWS;
GC_TRIGGERS;
MODE_PREEMPTIVE;
+ PRECONDITION(m_SessionType == EventPipeSessionType::IpcStream);
PRECONDITION(EventPipe::IsLockOwnedByCurrentThread());
}
CONTRACTL_END;
}
CONTRACTL_END;
- m_pFile->InitializeFile();
+ if (m_pFile != nullptr)
+ m_pFile->InitializeFile();
if (m_SessionType == EventPipeSessionType::IpcStream)
CreateIpcStreamingThread();