Bug 1578501 [wpt PR 18803] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / ipc / glue / CrossProcessSemaphore_unimplemented.cpp
blobc8b88d5fbdddb8c091bb683f6c2258eb5d2bae44
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::ShareToProcess(
52 base::ProcessId aTargetPid) {
53 MOZ_CRASH(
54 "Cross-process semaphores not allowed on this platform - woah! We "
55 "should've aborted by now!");
56 return 0;
59 void CrossProcessSemaphore::CloseHandle() {
60 MOZ_CRASH(
61 "Cross-process semaphores not allowed on this platform - woah! We "
62 "should've aborted by now!");
65 } // namespace mozilla