nsProxyRelease.cpp 742 B

123456789101112131415161718192021
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsProxyRelease.h"
  6. #include "nsThreadUtils.h"
  7. namespace detail {
  8. /* static */ void
  9. ProxyReleaseChooser<true>::ProxyReleaseISupports(nsIEventTarget* aTarget,
  10. nsISupports* aDoomed,
  11. bool aAlwaysProxy)
  12. {
  13. ::detail::ProxyRelease<nsISupports>(aTarget, dont_AddRef(aDoomed),
  14. aAlwaysProxy);
  15. }
  16. } // namespace detail