mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added 'ValueTypes' Single and Double Added some components in the new System::Net namespace Added the Console class, which can be used to output text to the screen Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions. BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
/********************************************************
|
|
* Enums.h *
|
|
* *
|
|
* System::Threading enumerations definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _SYSTEM_THREADING_ENUMS_
|
|
#define _SYSTEM_THREADING_ENUMS_
|
|
|
|
namespace System
|
|
{
|
|
namespace Threading
|
|
{
|
|
// Indicates whether an System::Threading::EventWaitHandle is reset automatically or manually after receiving a signal.
|
|
struct EventResetMode
|
|
{
|
|
enum type
|
|
{
|
|
AutoReset,
|
|
ManualReset
|
|
};
|
|
};
|
|
|
|
// The System::Threading::Thread can be scheduled after threads with Highest priority and before those with Normal priority.
|
|
struct ThreadPriority
|
|
{
|
|
enum type
|
|
{
|
|
AboveNormal,
|
|
BelowNormal,
|
|
Highest = 32,
|
|
Lowest = 0,
|
|
Normal,
|
|
};
|
|
};
|
|
|
|
struct ThreadState
|
|
{
|
|
enum type
|
|
{
|
|
Running = 0x00000000,
|
|
StopRequested = 0x00000001,
|
|
SuspendRequested = 0x00000002,
|
|
Background = 0x00000004,
|
|
Unstarted = 0x00000008,
|
|
Stopped = 0x00000010,
|
|
WaitSleepJoin = 0x00000020,
|
|
Suspended = 0x00000040,
|
|
AbortRequested = 0x00000080,
|
|
Aborted = 0x00000100
|
|
};
|
|
};
|
|
|
|
typedef EventResetMode::type EventResetMode_t;
|
|
typedef ThreadPriority::type ThreadPriority_t;
|
|
typedef ThreadState::type ThreadState_t;
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_THREADING_ENUMS_
|