Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

SSL GMPTimerParent.h

  Interaktion und
PortierbarkeitC
 

/* 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/. */


#ifndef GMPTimerParent_h_
#define GMPTimerParent_h_

#include "mozilla/Monitor.h"
#include "mozilla/gmp/PGMPTimerParent.h"
#include "nsCOMPtr.h"
#include "nsITimer.h"
#include "nsTHashSet.h"

namespace mozilla::gmp {

class GMPTimerParent final : public PGMPTimerParent {
  friend class PGMPTimerParent;

 public:
  NS_INLINE_DECL_REFCOUNTING(GMPTimerParent, final)
  explicit GMPTimerParent(nsCOMPtr<nsISerialEventTarget>&& aGMPEventTarget);

  void Shutdown();

 protected:
  mozilla::ipc::IPCResult RecvSetTimer(const uint32_t& aTimerId,
                                       const uint32_t& aTimeoutMs);
  void ActorDestroy(ActorDestroyReason aWhy) override;

 private:
  ~GMPTimerParent() = default;

  static void GMPTimerExpired(nsITimer* aTimer, void* aClosure);

  struct Context {
    Context() : mId(0) { MOZ_COUNT_CTOR(Context); }
    MOZ_COUNTED_DTOR(Context)
    nsCOMPtr<nsITimer> mTimer;
    RefPtr<GMPTimerParent>
        mParent;  // Note: live timers keep the GMPTimerParent alive.
    uint32_t mId;
  };

  void TimerExpired(Context* aContext);

  nsTHashSet<Context*> mTimers;

  nsCOMPtr<nsISerialEventTarget> mGMPEventTarget;

  bool mIsOpen;
};

}  // namespace mozilla::gmp

#endif  // GMPTimerParent_h_

Messung V0.5 in Prozent
C=95 H=97 G=95

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.3Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002