ThreadStorage

Engine/source/platform/platformTLS.h

Platform independent per-thread storage class.

More...

Private Types

enum
_Anonymous_ {  PlatformThreadStorageStorageSize = 32
}

Private Attributes

mStorage [PlatformThreadStorageStorageSize]

Public Functions

void *
get()

returns the per-thread stored void pointer for this ThreadStorage. The default value is NULL.

set(void * data)

sets the per-thread stored void pointer for this ThreadStorage object.

Detailed Description

Platform independent per-thread storage class.

Private Types

@140

Enumerator

PlatformThreadStorageStorageSize = 32

Private Attributes

U8 mStorage [PlatformThreadStorageStorageSize]
PlatformThreadStorage * mThreadStorage 

Public Functions

ThreadStorage()

ThreadStorage constructor.

~ThreadStorage()

ThreadStorage destructor.

get()

returns the per-thread stored void pointer for this ThreadStorage. The default value is NULL.

set(void * data)

sets the per-thread stored void pointer for this ThreadStorage object.