singrdk/base/Interfaces/Singularity.V1/Threads/MutexHandle.csi

34 lines
926 B
Plaintext
Raw Normal View History

2008-03-05 09:52:00 -05:00
////////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity - Singularity ABI
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: MutexHandle.csi
//
// Note:
//
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Singularity.V1.Threads
{
public struct MutexHandle // : public WaitHandle
{
public readonly UIntPtr id; // could be moved to WaitHandle
[NoHeapAllocation]
public static bool Create(bool initiallyOwned,
out MutexHandle handle);
[NoHeapAllocation]
public static void Dispose(MutexHandle handle);
[NoHeapAllocation]
public static void Release(MutexHandle handle);
[NoHeapAllocation]
public static bool IsOwnedByCurrentThread(MutexHandle handle);
}
}