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

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

#import <OFThread.h>

Inheritance diagram for OFTLSKey:
OFObject <OFObject>

List of all members.

Public Member Functions

(id) - initWithDestructor:
 Initializes an already allocated Thread Local Storage Key with the specified destructor.

Static Public Member Functions

(id) + TLSKey
 Creates a new Thread Local Storage key.
(id) + TLSKeyWithDestructor:
 Creates a new Thread Local Storage key with the specified destructor.

Detailed Description

A class for Thread Local Storage keys.


Member Function Documentation

- (id) initWithDestructor: (id)  destructor

Initializes an already allocated Thread Local Storage Key with the specified destructor.

Parameters:
destructorA destructor that is called when the thread is terminated
Returns:
An initialized Thread Local Storage key
+ (id) TLSKey

Creates a new Thread Local Storage key.

Returns:
A new, autoreleased Thread Local Storage key
+ (id) TLSKeyWithDestructor: (id)  destructor

Creates a new Thread Local Storage key with the specified destructor.

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 Properties