LibreOffice
LibreOffice 5.3 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Create a thread specific local data key.

osl::ThreadData::~ThreadData ( )
inline

Destroy a thread specific local data key.

Member Function Documentation

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
osl::ThreadData::operator oslThreadKey ( ) const
inline
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: