File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ static void printZeEventList(_pi_ze_event_list_t &PiZeEventList) {
827
827
zePrint (" \n " );
828
828
}
829
829
830
- pi_result _pi_ze_event_list_t::releaseAndDestroyPiZeEventList (
830
+ pi_result _pi_ze_event_list_t::collectEventsForReleaseAndDestroyPiZeEventList (
831
831
std::list<pi_event> &EventsToBeReleased) {
832
832
// acquire a lock before reading the length and list fields.
833
833
// Acquire the lock, copy the needed data locally, and reset
@@ -3811,13 +3811,15 @@ static void cleanupAfterEvent(pi_event Event) {
3811
3811
3812
3812
std::list<pi_event> EventsToBeReleased;
3813
3813
3814
- Event->WaitList .releaseAndDestroyPiZeEventList (EventsToBeReleased);
3814
+ Event->WaitList .collectEventsForReleaseAndDestroyPiZeEventList (
3815
+ EventsToBeReleased);
3815
3816
3816
3817
while (!EventsToBeReleased.empty ()) {
3817
3818
pi_event DepEvent = EventsToBeReleased.front ();
3818
3819
EventsToBeReleased.pop_front ();
3819
3820
3820
- DepEvent->WaitList .releaseAndDestroyPiZeEventList (EventsToBeReleased);
3821
+ DepEvent->WaitList .collectEventsForReleaseAndDestroyPiZeEventList (
3822
+ EventsToBeReleased);
3821
3823
piEventRelease (DepEvent);
3822
3824
}
3823
3825
zePrint (" cleanupAfterEvent exit\n " );
Original file line number Diff line number Diff line change @@ -512,8 +512,8 @@ struct _pi_ze_event_list_t {
512
512
// Add all the events in this object's PiEventList to the end
513
513
// of the list EventsToBeReleased. Destroy pi_ze_event_list_t data
514
514
// structure fields making it look empty.
515
- pi_result
516
- releaseAndDestroyPiZeEventList ( std::list<pi_event> &EventsToBeReleased);
515
+ pi_result collectEventsForReleaseAndDestroyPiZeEventList (
516
+ std::list<pi_event> &EventsToBeReleased);
517
517
518
518
// Had to create custom assignment operator because the mutex is
519
519
// not assignment copyable. Just field by field copy of the other
You can’t perform that action at this time.
0 commit comments