Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
ThreadStorage Class Reference

Platform independent per-thread storage class. More...

`#include <platformTLS.h>`

## Public Member Functions
| ThreadStorage ()
| ThreadStorage constructor. More...
| ~ThreadStorage ()
| ThreadStorage destructor. More...
void * | get ()
| returns the per-thread stored void pointer for this ThreadStorage. The default value is NULL. More...
void | set (void *data)
| sets the per-thread stored void pointer for this ThreadStorage object. More...

## Detailed Description

Platform independent per-thread storage class.

## Constructor & Destructor Documentation

ThreadStorage | ( |  | ) |

ThreadStorage constructor.

~ThreadStorage | ( |  | ) |

ThreadStorage destructor.

## Member Function Documentation

void * get | ( |  | ) |

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

void set | ( | void * | data | ) |

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

The documentation for this class was generated from the following files:

- platform/platformTLS.h
- platformAndroid/AndroidThread.cpp
- platformEmscripten/EmscriptenThread.cpp