ObjFW
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
OFTLSKey Class Reference

A class for Thread Local Storage keys. More...

#include <OFThread.h>

Inheritance diagram for OFTLSKey:
OFObject <OFObject>

List of all members.

Public Member Functions

id init ()
id initWithDestructor: (id destructor)

Static Public Member Functions

id TLSKey ()
id TLSKeyWithDestructor: (id destructor)
void callAllDestructors ()

Public Attributes

of_tlskey_t key

Protected Attributes

void(* destructor )(id)
of_list_object_tlistobj
BOOL initialized

Detailed Description

A class for Thread Local Storage keys.


Member Function Documentation

id OFTLSKey::init ( ) [virtual]
Returns:
An initialized Thread Local Storage key

Reimplemented from OFObject.

id OFTLSKey::initWithDestructor: ( id  destructor) [virtual]
Parameters:
destructorA destructor that is called when the thread is terminated
Returns:
An initialized Thread Local Storage key
id OFTLSKey::TLSKey ( ) [static, virtual]
Returns:
A new autoreleased Thread Local Storage key
id OFTLSKey::TLSKeyWithDestructor: ( id  destructor) [static, virtual]
Parameters:
destructorA destructor that is called when the thread is terminated
Returns:
A new autoreleased Thread Local Storage key

The documentation for this class was generated from the following files:
 All Classes Functions Variables