RTI Connext .NET API (legacy)  Version 6.1.2

Other Utilities APIs. More...

#include <managed_config_dotnet.h>

Static Public Member Functions

static void spin (System::UInt64 spinCount)
 Performs the spin operation as many times as indicated. More...
 
static System::UInt64 get_spin_per_microsecond ()
 Returns the number of spin operations to perform to wait 1 microsecond. More...
 
static System::Boolean enable_heap_monitoring ()
 [DEPRECATED] See: NDDS::HeapMonitoring::enable. More...
 
static void disable_heap_monitoring ()
 [DEPRECATED] See: NDDS::HeapMonitoring::disable. More...
 
static System::Boolean pause_heap_monitoring ()
 [DEPRECATED] See: NDDS::HeapMonitoring::pause. More...
 
static System::Boolean resume_heap_monitoring ()
 [DEPRECATED] See: NDDS::HeapMonitoring::resume More...
 
static System::Boolean take_heap_snapshot (System::String^ filename, System::Boolean print_details)
 [DEPRECATED] See: NDDS::HeapMonitoring::take_heap_snapshot. More...
 

Detailed Description

Other Utilities APIs.

Member Function Documentation

◆ spin()

static void NDDS::Utility::spin ( System::UInt64  spinCount)
static

Performs the spin operation as many times as indicated.

Spinning is the action of performing useless operations in a for loop in order to actively wait some time without yielding the CPU. Given that the resolution of sleep is in the order of ms, you can use this utility to wait times in the order of microseconds. To properly use this functionality, it is useful to measure previously the number of spin operations needed to wait the equivalent to microsecond (using the utility get_spin_per_microsecond) and then compute the corresponding spin count desired.

Parameters
spinCount<<in>> Number of spin operations to perform.

◆ get_spin_per_microsecond()

static System::UInt64 NDDS::Utility::get_spin_per_microsecond ( )
static

Returns the number of spin operations to perform to wait 1 microsecond.

This utility can be used to measure how many spin operations must be performed to wait 1 microsecond. Since the time that it takes the CPU to perform 1 spin operation depends on the CPU frequency, it is recommended to use this utility before using spin().

Returns
Number of spin operations to wait 1 microsecond.
See also
NDDS::Utility::spin

◆ enable_heap_monitoring()

static System::Boolean NDDS::Utility::enable_heap_monitoring ( )
static

[DEPRECATED] See: NDDS::HeapMonitoring::enable.

◆ disable_heap_monitoring()

static void NDDS::Utility::disable_heap_monitoring ( )
static

[DEPRECATED] See: NDDS::HeapMonitoring::disable.

◆ pause_heap_monitoring()

static System::Boolean NDDS::Utility::pause_heap_monitoring ( )
static

[DEPRECATED] See: NDDS::HeapMonitoring::pause.

◆ resume_heap_monitoring()

static System::Boolean NDDS::Utility::resume_heap_monitoring ( )
static

[DEPRECATED] See: NDDS::HeapMonitoring::resume

◆ take_heap_snapshot()

static System::Boolean NDDS::Utility::take_heap_snapshot ( System::String^  filename,
System::Boolean  print_details 
)
static