tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CrossProcessMutex_unimplemented.cpp (1357B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "CrossProcessMutex.h"
      8 
      9 #include "nsDebug.h"
     10 
     11 namespace mozilla {
     12 
     13 CrossProcessMutex::CrossProcessMutex(const char*) {
     14  MOZ_CRASH("Cross-process mutices not allowed on this platform.");
     15 }
     16 
     17 CrossProcessMutex::CrossProcessMutex(CrossProcessMutexHandle) {
     18  MOZ_CRASH("Cross-process mutices not allowed on this platform.");
     19 }
     20 
     21 CrossProcessMutex::~CrossProcessMutex() {
     22  MOZ_CRASH(
     23      "Cross-process mutices not allowed on this platform - woah! We should've "
     24      "aborted by now!");
     25 }
     26 
     27 void CrossProcessMutex::Lock() {
     28  MOZ_CRASH(
     29      "Cross-process mutices not allowed on this platform - woah! We should've "
     30      "aborted by now!");
     31 }
     32 
     33 void CrossProcessMutex::Unlock() {
     34  MOZ_CRASH(
     35      "Cross-process mutices not allowed on this platform - woah! We should've "
     36      "aborted by now!");
     37 }
     38 
     39 CrossProcessMutexHandle CrossProcessMutex::CloneHandle() {
     40  MOZ_CRASH(
     41      "Cross-process mutices not allowed on this platform - woah! We should've "
     42      "aborted by now!");
     43  return 0;
     44 }
     45 
     46 }  // namespace mozilla