clan::ThreadLocalStorage Class Reference - ClanLib SDK
Description: clan::ThreadLocalStorage Class Reference

Public Member Functions | Static Public Member Functions | Friends | List of all members
clan::ThreadLocalStorage Class Reference
clanCore System

ThreadLocalStorage class. More...

`#include <thread_local_storage.h>`

## Public Member Functions
| ThreadLocalStorage ()
| Constructs a Thread Local Storage object.
| ~ThreadLocalStorage ()

## Static Public Member Functions
static std::shared_ptr< ThreadLocalStorageData > | get_variable (const std::string &name)
| Get a variable.
static void | set_variable (const std::string &name, std::shared_ptr< ThreadLocalStorageData > ptr)
| Set a variable.

## Friends
class | ThreadLocalStorage_Instance

## Detailed Description

ThreadLocalStorage class.

## Constructor & Destructor Documentation

## ◆ ThreadLocalStorage()

clan::ThreadLocalStorage::ThreadLocalStorage | ( |  | ) |

Constructs a Thread Local Storage object.

## ◆ ~ThreadLocalStorage()

clan::ThreadLocalStorage::~ThreadLocalStorage | ( |  | ) |

## Member Function Documentation

## ◆ get_variable()

std::shared_ptr< ThreadLocalStorageData > clan::ThreadLocalStorage::get_variable | ( | const std::string & | name | ) |
| static

Get a variable.

## ◆ set_variable()

void clan::ThreadLocalStorage::set_variable | ( | const std::string & | name,
|  | std::shared_ptr< ThreadLocalStorageData > | ptr )
| static

Set a variable.

References ThreadLocalStorage_Instance.

## Friends And Related Symbol Documentation

## ◆ ThreadLocalStorage_Instance

friend class ThreadLocalStorage_Instance
| friend

References ThreadLocalStorage_Instance.

Referenced by set_variable(), and ThreadLocalStorage_Instance.

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

- thread_local_storage.h