File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,11 @@ class EventPipeBuffer
146
146
// Input of NULL gets the first event.
147
147
EventPipeEventInstance* GetNext (EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp);
148
148
149
- // Get the next event from the buffer, but don't mark it read.
149
+ // Get the next event from the buffer
150
150
EventPipeEventInstance* PeekNext (LARGE_INTEGER beforeTimeStamp);
151
151
152
- // TODO
152
+ // Advance the buffer to the next event
153
+ // pEvent is expected to be the last event returned from PeekNext()
153
154
void PopNext (EventPipeEventInstance *pEvent);
154
155
155
156
// Check the state of the buffer
Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ void EventPipeBufferManager::SuspendWriteEvent()
647
647
648
648
_ASSERTE (EnsureConsistency ());
649
649
650
- // All calls to this method must not be synchronized by our caller
650
+ // All calls to this method must be synchronized by our caller
651
651
_ASSERTE (EventPipe::IsLockOwnedByCurrentThread ());
652
652
653
653
CQuickArrayList<EventPipeThread*> threadList;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class EventPipeBufferManager
129
129
130
130
// From the time this function returns until ResumeWriteEvent() is called a suspended state will
131
131
// be in effect that blocks all WriteEvent activity. All existing buffers will be in the
132
- // PENDING_FLUSH state and no new EventPipeBuffers or EventPipeBufferLists can be created. Calls to
132
+ // READ_ONLY state and no new EventPipeBuffers or EventPipeBufferLists can be created. Calls to
133
133
// WriteEvent that start during the suspension period or were in progress but hadn't yet recorded
134
134
// their event into a buffer before the start of the suspension period will return false and the
135
135
// event will not be recorded. Any events that not recorded as a result of this suspension will be
@@ -197,7 +197,8 @@ class EventPipeBufferList
197
197
// Get the count of buffers in the list.
198
198
unsigned int GetCount () const ;
199
199
200
- // TODO
200
+ // Pop the event from the buffer, and potentially clean-up the previous buffer
201
+ // pNext is expected to be the last event returned from TryGetBuffer()->PeekNext()
201
202
void PopNextEvent (EventPipeBuffer *pContainingBuffer, EventPipeEventInstance *pNext);
202
203
203
204
// Get the thread associated with this list.
You can’t perform that action at this time.
0 commit comments