mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Replaced all copyright symbols with (c) to improve cross-platform reading Added classes to XFX::Audio namespace Added and updated classes in XFX::Graphics namespace Updated event function signature Replaced const char* ToString() with const String& ToString()
36 lines
842 B
C++
36 lines
842 B
C++
/********************************************************
|
||
* WaitHandle.h *
|
||
* *
|
||
* XFX WaitHandle definition file *
|
||
* Copyright (c) XFX Team. All Rights Reserved *
|
||
********************************************************/
|
||
#ifndef _SYSTEM_THREADING_WAITHANDLE_
|
||
#define _SYSTEM_THREADING_WAITHANDLE_
|
||
|
||
#include "../Types.h"
|
||
|
||
namespace System
|
||
{
|
||
namespace Threading
|
||
{
|
||
// Encapsulates operating system–specific objects that wait for exclusive access to shared resources.
|
||
class WaitHandle
|
||
{
|
||
protected:
|
||
static const IntPtr InvalidHandle;
|
||
|
||
virtual void Dispose(bool explicitDisposing);
|
||
WaitHandle();
|
||
|
||
public:
|
||
IntPtr Handle;
|
||
|
||
virtual void Close();
|
||
virtual bool WaitOne();
|
||
virtual bool WaitOne(int millisecondsTimeout, bool exitContext);
|
||
};
|
||
}
|
||
}
|
||
|
||
#endif //_SYSTEM_THREADING_WAITHANDLE_
|