/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifdefined(XP_WIN) # include "mozilla/Futex.h" #elif !defined(__wasi__) # include <pthread.h> #endif
namespace mozilla {
namespace detail {
class ConditionVariableImpl;
class MutexImpl {
public: explicit MFBT_API MutexImpl();
MFBT_API ~MutexImpl();
protected:
MFBT_API void lock();
MFBT_API void unlock(); // We have a separate, forwarding API so internal uses don't have to go // through the PLT.
MFBT_API bool tryLock();
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 und die Messung sind noch experimentell.