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

37 lines
1.1 KiB
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: AutoResetEventHandle.csi
//
// Note:
//
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Singularity.V1.Threads
{
public struct AutoResetEventHandle // : public WaitHandle
{
public readonly UIntPtr id; // could be moved to WaitHandle
[NoHeapAllocation]
public static bool Create(bool initialState,
out AutoResetEventHandle handle);
[NoHeapAllocation]
public static void Dispose(AutoResetEventHandle handle);
[NoHeapAllocation]
public static bool Reset(AutoResetEventHandle handle);
[NoHeapAllocation]
public static bool Set(AutoResetEventHandle handle);
[NoHeapAllocation]
public static bool SetAll(AutoResetEventHandle handle);
[NoHeapAllocation]
public static bool SetNoGC(AutoResetEventHandle handle);
}
}