Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / ipc / glue / CrossProcessSemaphore_unimplemented.cpp
blob822aeb76ebf61d9769ba38f7fca31bd72af0417b
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 "CrossProcessSemaphore.h"
9 #include "nsDebug.h"
11 namespace mozilla {
13 /* static */
14 CrossProcessSemaphore* CrossProcessSemaphore::Create(const char*, uint32_t) {
15 MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
16 return nullptr;
19 /* static */
20 CrossProcessSemaphore* CrossProcessSemaphore::Create(
21 CrossProcessSemaphoreHandle) {
22 MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
23 return nullptr;
26 CrossProcessSemaphore::CrossProcessSemaphore() {
27 MOZ_CRASH(
28 "Cross-process semaphores not allowed on this platform - woah! We "
29 "should've aborted by now!");
32 CrossProcessSemaphore::~CrossProcessSemaphore() {
33 MOZ_CRASH(
34 "Cross-process semaphores not allowed on this platform - woah! We "
35 "should've aborted by now!");
38 bool CrossProcessSemaphore::Wait(const Maybe<TimeDuration>& aWaitTime) {
39 MOZ_CRASH(
40 "Cross-process semaphores not allowed on this platform - woah! We "
41 "should've aborted by now!");
42 return false;
45 void CrossProcessSemaphore::Signal() {
46 MOZ_CRASH(
47 "Cross-process semaphores not allowed on this platform - woah! We "
48 "should've aborted by now!");
51 CrossProcessSemaphoreHandle CrossProcessSemaphore::CloneHandle() {
52 MOZ_CRASH(
53 "Cross-process semaphores not allowed on this platform - woah! We "
54 "should've aborted by now!");
55 return 0;
58 void CrossProcessSemaphore::CloseHandle() {
59 MOZ_CRASH(
60 "Cross-process semaphores not allowed on this platform - woah! We "
61 "should've aborted by now!");
64 } // namespace mozilla