ipc/glue/CrossProcessSemaphore_unimplemented.cpp
author Andrew Osmond <aosmond@mozilla.com>
Fri, 17 Nov 2017 06:45:28 -0500
changeset 446749 8d8cfa078d8601abcb66e1edb786e971f929ad89
parent 404379 f79d7564d39d7a622c2dbc6fd1722e74a40ab453
child 462714 395d409b9bf52b975a8b29b81a3e00472c9f0f6e
permissions -rw-r--r--
Bug 1368776 - Part 16. Ensure we more consistently pass the suggested size from SurfaceCache::LookupBestMatch. r=tnikkel The suggested size is useful in more situations now that GetImageContainerImpl requires it. It should be passed whenever we have it available.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "CrossProcessSemaphore.h"

#include "nsDebug.h"

namespace mozilla {

/* static */ CrossProcessSemaphore*
CrossProcessSemaphore::Create(const char*, uint32_t)
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
  return nullptr;
}

/* static */ CrossProcessSemaphore*
CrossProcessSemaphore::Create(CrossProcessSemaphoreHandle)
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform.");
  return nullptr;
}

CrossProcessSemaphore::CrossProcessSemaphore()
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform - woah! We should've aborted by now!");
}

CrossProcessSemaphore::~CrossProcessSemaphore()
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform - woah! We should've aborted by now!");
}

bool
CrossProcessSemaphore::Wait(const Maybe<TimeDuration>& aWaitTime)
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform - woah! We should've aborted by now!");
  return false;
}

void
CrossProcessSemaphore::Signal()
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform - woah! We should've aborted by now!");
}

CrossProcessSemaphoreHandle
CrossProcessSemaphore::ShareToProcess(base::ProcessId aTargetPid)
{
  MOZ_CRASH("Cross-process semaphores not allowed on this platform - woah! We should've aborted by now!");
  return 0;
}

}