LibreOffice: osl::ThreadData Class Reference

LibreOffice LibreOffice 26.2 SDK C/C++ API Reference

Loading...
Searching...
No Matches
osl::ThreadData Class Reference

`#include <thread.hxx>`

## Public Member Functions
| ThreadData (oslThreadKeyCallbackFunction pCallback=NULL)
| Create a thread specific local data key.
| ~ThreadData ()
| Destroy a thread specific local data key.
bool | setData (void *pData)
| Set the data associated with the data key.
void * | getData ()
| Get the data associated with the data key.
| 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