Bug 1835804 - Completely block from doing audio decoding on Content and RDD r=alwu
[gecko.git] / ipc / glue / CrossProcessMutex_unimplemented.cpp
blob70b63d7ea9ad6340545f4e14eeb0f1246f515f2d
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/. */
7 #include "CrossProcessMutex.h"
9 #include "nsDebug.h"
11 namespace mozilla {
13 CrossProcessMutex::CrossProcessMutex(const char*) {
14 MOZ_CRASH("Cross-process mutices not allowed on this platform.");
17 CrossProcessMutex::CrossProcessMutex(CrossProcessMutexHandle) {
18 MOZ_CRASH("Cross-process mutices not allowed on this platform.");
21 CrossProcessMutex::~CrossProcessMutex() {
22 MOZ_CRASH(
23 "Cross-process mutices not allowed on this platform - woah! We should've "
24 "aborted by now!");
27 void CrossProcessMutex::Lock() {
28 MOZ_CRASH(
29 "Cross-process mutices not allowed on this platform - woah! We should've "
30 "aborted by now!");
33 void CrossProcessMutex::Unlock() {
34 MOZ_CRASH(
35 "Cross-process mutices not allowed on this platform - woah! We should've "
36 "aborted by now!");
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;
46 } // namespace mozilla