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"
14 CrossProcessSemaphore
* CrossProcessSemaphore::Create(const char*, uint32_t) {
15 MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
20 CrossProcessSemaphore
* CrossProcessSemaphore::Create(
21 CrossProcessSemaphoreHandle
) {
22 MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
26 CrossProcessSemaphore::CrossProcessSemaphore() {
28 "Cross-process semaphores not allowed on this platform - woah! We "
29 "should've aborted by now!");
32 CrossProcessSemaphore::~CrossProcessSemaphore() {
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
) {
40 "Cross-process semaphores not allowed on this platform - woah! We "
41 "should've aborted by now!");
45 void CrossProcessSemaphore::Signal() {
47 "Cross-process semaphores not allowed on this platform - woah! We "
48 "should've aborted by now!");
51 CrossProcessSemaphoreHandle
CrossProcessSemaphore::CloneHandle() {
53 "Cross-process semaphores not allowed on this platform - woah! We "
54 "should've aborted by now!");
58 void CrossProcessSemaphore::CloseHandle() {
60 "Cross-process semaphores not allowed on this platform - woah! We "
61 "should've aborted by now!");
64 } // namespace mozilla