|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Namespaces | |
| namespace | Tasks |
Classes | |
| class | AutoResetEvent |
| Event to notify waiting thread that resets automatically. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | CancellationToken |
| Propagates notification that operations should be canceled. This class provides a mechanism for cooperative cancellation between threads, allowing one thread to notify others that an operation should be canceled. More... | |
| class | CancellationTokenRegistration |
| Represents a registration for a cancellation token callback. More... | |
| class | CancellationTokenSource |
| A cancellation token source that can be used to trigger cancellation notifications. More... | |
| class | Details_ThreadAbortException |
| class | EventWaitHandle |
| Event that can be sent to waiting thread. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | Interlocked |
| Provides API for thread-safe operations. This is a static type with no instance services. You should never create instances of it by any means. More... | |
| class | ManualResetEvent |
| Event to notify waiting thread that does not reset automatically. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | Monitor |
| Class Monitor provides a mechanism that synchronizes access to objects. More... | |
| class | Mutex |
| Mutex implemnetation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | Semaphore |
| Semaphore implementation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | SynchronizationContext |
| Provides the basic functionality for propagating a synchronization context across various synchronization operations. More... | |
| class | Thread |
| Thread implementation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | ThreadPool |
| Thread pool API allowing it pushing jobs into queue to be read by pool of worker threads. This is a static type with no instance services. You should never create instances of it by any means. More... | |
| class | ThreadPoolImpl |
| Thread pool internal data. This is a singleton type with memory management done by access function(s). You should never create instances of it directly. More... | |
| struct | Timeout |
| Threading timeout special values. This is a static type with no instance services. You should never create instances of it by any means. More... | |
| class | Timer |
| Timer class that executes job item in separate thread after delay. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
| class | TimerQueue |
| Queue that handles Timer objects. This is just an implementation. Timer objects register there by themselves, you don't have to do so to use them - use Timer class API instead. This is a singleton type with memory management done by access function(s). You should never create instances of it directly. More... | |
| class | WaitHandle |
| Waiting primitive base class. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
Typedefs | |
| using | ThreadAbortException = System::ExceptionWrapper< Details_ThreadAbortException > |
| using | SendOrPostCallback = System::MulticastDelegate< void(System::SharedPtr< Object >)> |
| using | ParameterizedThreadStart = System::MulticastDelegate< void(System::SharedPtr< System::Object >)> |
| Thread function with single parameter. More... | |
| using | ThreadStart = System::MulticastDelegate< void()> |
| Thread function with no parameters. More... | |
| using | WaitCallback = System::MulticastDelegate< void(System::SharedPtr< System::Object >)> |
| Callback item to be executed once there is a spot. More... | |
| using | TimerCallback = System::MulticastDelegate< void(System::SharedPtr< System::Object >)> |
| Callback function to be called by timer. More... | |
| typedef void * | wait_handle_t |
| Handle type. More... | |
Enumerations | |
| enum class | ApartmentState { STA = 0 , MTA = 1 , Unknown = 2 } |
| Sets apartment state of the thread. More... | |
| enum class | EventResetMode { AutoReset = 0 , ManualReset = 1 } |
| Indicates how event state resets. More... | |
| enum | ThreadState { Running = 0 , StopRequested = 1 , SuspendRequested = 2 , Background = 4 , Unstarted = 8 , Stopped = 16 , WaitSleepJoin = 32 , Suspended = 64 , AbortRequested = 128 , Aborted = 256 } |
| State of the thread. More... | |
Functions | |
| DECLARE_INHERITED_EXCEPTION_MSG (ThreadStateException, System::Details_SystemException) | |
| ThreadStateException is thrown when the current thread is in non-valid state for the method call. More... | |
| DECLARE_INHERITED_EXCEPTION_MSG (SemaphoreFullException, System::Details_SystemException) | |
| SemaphoreFullException is thrown by the Semaphore.Release() method if it is called when the semaphore's count is at the maximum. More... | |
| DECLARE_INHERITED_EXCEPTION_MSG (SynchronizationLockException, System::Details_SystemException) | |
| SynchronizationLockException is thrown by calling the Monitor::Exit method from an unsynchronized block of code. More... | |
| DECLARE_INHERITED_EXCEPTION_MSG (ThreadInterruptedException, System::Details_SystemException) | |
| ThreadInterruptedException is thrown when a Thread is interrupted while it is in a waiting state. More... | |
| using System::Threading::ParameterizedThreadStart = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>)> |
Thread function with single parameter.
| using System::Threading::SendOrPostCallback = typedef System::MulticastDelegate<void(System::SharedPtr<Object>)> |
| using System::Threading::ThreadAbortException = typedef System::ExceptionWrapper<Details_ThreadAbortException > |
| using System::Threading::ThreadStart = typedef System::MulticastDelegate<void()> |
Thread function with no parameters.
| using System::Threading::TimerCallback = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>)> |
Callback function to be called by timer.
| typedef void* System::Threading::wait_handle_t |
Handle type.
| using System::Threading::WaitCallback = typedef System::MulticastDelegate<void(System::SharedPtr<System::Object>)> |
Callback item to be executed once there is a spot.
|
strong |
|
strong |
State of the thread.
| Enumerator | |
|---|---|
| Running | Thread is running. |
| StopRequested | Thread stop is requested. |
| SuspendRequested | Thread suspension is requested. |
| Background | Theread is being executed in background. |
| Unstarted | Thread is not started. |
| Stopped | Thread is stopped. |
| WaitSleepJoin | Thread is bein waited to be joined. |
| Suspended | Thread is suspended. |
| AbortRequested | Thread abortion is requested. |
| Aborted | Thread is aborted. |
| System::Threading::DECLARE_INHERITED_EXCEPTION_MSG | ( | SemaphoreFullException | , |
| System::Details_SystemException | |||
| ) |
SemaphoreFullException is thrown by the Semaphore.Release() method if it is called when the semaphore's count is at the maximum.
| System::Threading::DECLARE_INHERITED_EXCEPTION_MSG | ( | SynchronizationLockException | , |
| System::Details_SystemException | |||
| ) |
SynchronizationLockException is thrown by calling the Monitor::Exit method from an unsynchronized block of code.
| System::Threading::DECLARE_INHERITED_EXCEPTION_MSG | ( | ThreadInterruptedException | , |
| System::Details_SystemException | |||
| ) |
ThreadInterruptedException is thrown when a Thread is interrupted while it is in a waiting state.
| System::Threading::DECLARE_INHERITED_EXCEPTION_MSG | ( | ThreadStateException | , |
| System::Details_SystemException | |||
| ) |
ThreadStateException is thrown when the current thread is in non-valid state for the method call.