ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.06k stars 9.68k forks source link

ChoreographyContext::NextRoutine() not remove obtained cr #15520

Closed ElseDP closed 3 weeks ago

ElseDP commented 3 weeks ago

https://github.com/ApolloAuto/apollo/blob/fb23f6a1520a34ad38934b0c81fe5377452c2deb/cyber/scheduler/policy/choreography_context.cc#L48

After calling ChoreographyContext::NextRoutine() to obtain cr, the cr_queue_ does not remove this data. As a result, the cr_queue keeps growing, which affects efficiency.

ElseDP commented 3 weeks ago

No need to delete