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::ShareToProcess(
52 base::ProcessId aTargetPid
) {
54 "Cross-process semaphores not allowed on this platform - woah! We "
55 "should've aborted by now!");
59 void CrossProcessSemaphore::CloseHandle() {
61 "Cross-process semaphores not allowed on this platform - woah! We "
62 "should've aborted by now!");
65 } // namespace mozilla