ReplicaNet and RNLobby  1
Static Public Member Functions | List of all members
PlatformInfo Class Reference

#include <PlatformInfo.h>

Static Public Member Functions

static bool IsThreaded (void)
 
static bool IsLittleEndian (void)
 
static void SetThreaded (const bool allow)
 
static void SetProcessorReplicaNet (const int processor=kReplicaNetPreferredProcessorOSChoice)
 
static int GetProcessorReplicaNet (void)
 
static void SetProcessorXPSession (const int processor=kReplicaNetPreferredProcessorOSChoice)
 
static int GetProcessorXPSession (void)
 
static void SetProcessorXPURL (const int processor=kReplicaNetPreferredProcessorOSChoice)
 
static int GetProcessorXPURL (void)
 
static int GetNumberOfCores (void)
 

Detailed Description

A class designed to read various platform specific attributes

Member Function Documentation

static int GetNumberOfCores ( void  )
static

Gets the number of CPU cores.

static bool IsLittleEndian ( void  )
static

Tests for endianness of the machine

Returns
returns true for little endian machines
static bool IsThreaded ( void  )
static

Supplies information on if the library is compiled with threading on or off.

Returns
returns true if threading is turned on
static void SetProcessorReplicaNet ( const int  processor = kReplicaNetPreferredProcessorOSChoice)
static

Sets the preferred processor for the ReplicaNet thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.

static void SetProcessorXPSession ( const int  processor = kReplicaNetPreferredProcessorOSChoice)
static

Sets the preferred processor for the XPSession thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.

static void SetProcessorXPURL ( const int  processor = kReplicaNetPreferredProcessorOSChoice)
static

Sets the preferred processor for the XPURL thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.

static void SetThreaded ( const bool  allow)
static

Sets if threads are allowed on this system. Allowing threads with single threaded libraries may result in unexpected results.

Parameters
allowtrue means allow threads, false does not allow threads