[LB policy API] add TODOs about fixing ABA problems (#37051)

Closes #37051

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37051 from markdroth:subchannel_interface_todo 11d072ac96
PiperOrigin-RevId: 646641886
pull/37062/head
Mark D. Roth 8 months ago committed by Copybara-Service
parent 6d2ba78bc0
commit 2e80374aac
  1. 4
      src/core/load_balancing/subchannel_interface.h

@ -76,6 +76,8 @@ class SubchannelInterface : public DualRefCounted<SubchannelInterface> {
// Cancels a connectivity state watch.
// If the watcher has already been destroyed, this is a no-op.
// TODO(roth): This interface has an ABA issue. Fix this before we
// make this API public.
virtual void CancelConnectivityStateWatch(
ConnectivityStateWatcherInterface* watcher) = 0;
@ -96,6 +98,8 @@ class SubchannelInterface : public DualRefCounted<SubchannelInterface> {
std::unique_ptr<DataWatcherInterface> watcher) = 0;
// Cancels a data watch.
// TODO(roth): This interface has an ABA issue. Fix this before we
// make this API public.
virtual void CancelDataWatcher(DataWatcherInterface* watcher) = 0;
protected:

Loading…
Cancel
Save