Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ESI] Make AcceleratorConnection::disconnect virtual (#7554)
Currently, `AcceleratorConnection` implementations only have one "official" teardown entry point, being their destructors. However, this makes implementations susceptible to destructor race conditions, due to the various things that may be concurrently executing in implementation-owned resources. To provide users with more control during teardown, mark `AcceleratorConnection::disconnect` as virtual, allowing implementations to tear things down before destruction. Co-authored-by: Morten Borup Petersen <[email protected]>
- Loading branch information