2012-02-16 07:11:43 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2012-05-21 15:12:37 +04: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-16 07:11:43 +04: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 16:56:59 +04:00
|
|
|
return 0;
|
2012-02-16 07:11:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|