nn::nex::Core Class

Syntax

class Core : public nn::nex::RefCountedObject

Description

Class that sets the thread mode in which the system operates. Also sets the NgsFacade and NetZ destruction modes.

An instance of this class is created when NgsFacade or NetZ is created, and it is destroyed when both are destroyed.

Always set the thread mode with the Core::SetThreadMode function after calling the GlobalVariables::AcquireInstance function.

Enumerated Types

ThreadMode The enumerator type for threads settings according to purpose. Used as the argument for the SetThreadMode function.

Member Functions

S GetInstance Returns a pointer to a Core instance.
S SetThreadMode Enables you to set the NEX thread mode.
S GetThreadMode Gets the currently set thread mode.
S IsUsingThreadAutoStack Gets whether AutoStack is being used for the thread's stack memory. The default value is false.
S UseThreadAutoStack Sets whether to use AutoStack for the thread's stack memory.
S IsThreadSafe Gets whether NetZ processing is currently thread-safe.
S SetThreadStackSize Sets the size of the thread stack.
S GetThreadStackSize Gets the size of the thread stack.
SetTerminateImmediately Sets the mode to terminate-immediately mode.
GetTerminateImmediately Gets whether the mode has been set to terminate-immediately mode.
AcquireRef Increments the reference count by 1. (Inherits RefCountedObject.)
ReleaseRef Decrements the reference count by 1. Deletes itself when the count reaches 0. (Inherits RefCountedObject.)

Class Hierarchy

nn::nex::RootObject
  nn::nex::RefCountedObject
    nn::nex::Core

See Also

NgsFacade, NetZ

Revision History

2012/03/08
Added a description of the timing when instances of the Core class are created and destroyed.
2012/07/13
The Core::UseThreads, Core::UseTransportBufferThread, and Core::SelectThreadSafeExecution functions were made private.
2011/01/27
Initial version.

CONFIDENTIAL