LibreOffice: osl::ThreadData Class Reference

LibreOffice LibreOffice 5.2 SDK C/C++ API Reference

Public Member Functions | List of all members
osl::ThreadData Class Reference

`#include <thread.hxx>`

## Public Member Functions
| ThreadData (oslThreadKeyCallbackFunction pCallback=NULL)
| Create a thread specific local data key. More...
| ~ThreadData ()
| Destroy a thread specific local data key. More...
bool | setData (void *pData)
| Set the data associated with the data key. More...
void * | getData ()
| Get the data associated with the data key. More...
| operator oslThreadKey () const

## Constructor & Destructor Documentation

## ◆ ThreadData()

osl::ThreadData::ThreadData | ( | oslThreadKeyCallbackFunction | pCallback = `NULL` | ) |
| inline

Create a thread specific local data key.

## ◆ ~ThreadData()

osl::ThreadData::~ThreadData | ( |  | ) |
| inline

Destroy a thread specific local data key.

## Member Function Documentation

## ◆ getData()

void* osl::ThreadData::getData | ( |  | ) |
| inline

Get the data associated with the data key.

Returns
  The data associated with the data key or NULL if no data was set

## ◆ operator oslThreadKey()

osl::ThreadData::operator oslThreadKey | ( |  | ) | const
| inline

## ◆ setData()

bool osl::ThreadData::setData | ( | void * | pData | ) |
| inline

Set the data associated with the data key.

Returns
  True if operation was successful

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

- osl/thread.hxx