/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifdefined(MOZ_DIAGNOSTIC_ASSERT_ENABLED) # include "prthread.h" # define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \
MOZ_DIAGNOSTIC_ASSERT(mOwningThread == PR_GetCurrentThread()) #else # define COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() \ do { \
} while (false) #endif
// CommonSocketControl is the base class that implements nsITLSSocketControl. // Various concrete TLS socket control implementations inherit from this class. // Currently these implementations consist of NSSSocketControl (a socket // control for NSS) and QuicSocketControl (a socket control for quic). // NB: these classes must only be used on the socket thread (the one exception // being tests that incidentally use CommonSocketControl on the main thread // (and only the main thread)). This is enforced via the macro // COMMON_SOCKET_CONTROL_ASSERT_ON_OWNING_THREAD() that should be called at the // beginning of every function in this class and all subclasses. class CommonSocketControl : public nsITLSSocketControl { public:
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSITLSSOCKETCONTROL
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.