2012-02-15 19:11:43 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* 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/. */
|
2012-02-15 19:11:43 -08:00
|
|
|
|
|
|
|
#include "CrossProcessMutex.h"
|
|
|
|
|
|
|
|
#include "nsDebug.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
CrossProcessMutex::CrossProcessMutex(const char*)
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform.");
|
|
|
|
}
|
|
|
|
|
|
|
|
CrossProcessMutex::CrossProcessMutex(CrossProcessMutexHandle)
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform.");
|
|
|
|
}
|
|
|
|
|
|
|
|
CrossProcessMutex::~CrossProcessMutex()
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform - woah! We should've aborted by now!");
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
CrossProcessMutex::Lock()
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform - woah! We should've aborted by now!");
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
CrossProcessMutex::Unlock()
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform - woah! We should've aborted by now!");
|
|
|
|
}
|
|
|
|
|
|
|
|
CrossProcessMutexHandle
|
|
|
|
CrossProcessMutex::ShareToProcess(base::ProcessHandle aHandle)
|
|
|
|
{
|
|
|
|
NS_RUNTIMEABORT("Cross-process mutices not allowed on this platform - woah! We should've aborted by now!");
|
2012-08-26 05:56:59 -07:00
|
|
|
return 0;
|
2012-02-15 19:11:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|