UCommon
Public Member Functions
ucommon::locked_pointer Class Reference

Templated locked pointer for referencing locked objects of specific type. More...

#include <thread.h>

Inheritance diagram for ucommon::locked_pointer:
Inheritance graph
[legend]
Collaboration diagram for ucommon::locked_pointer:
Collaboration graph
[legend]

Public Member Functions

T * dup (void)
 Create a duplicate reference counted instance of the current typed object.
 locked_pointer ()
 Create an instance of a typed locked pointer.
T * operator* ()
 Create a duplicate reference counted instance of the current typed object by pointer reference.
void operator= (T *object)
 Replace existing object through assignment.
void replace (T *object)
 Replace existing typed object with a new one for next request.

Detailed Description

Templated locked pointer for referencing locked objects of specific type.

This is used as typed template for the LockedPointer object reference management class. This is used to supply a typed locked instances to the typed locked_instance template class.

Author:
David Sugar <dyfet@gnutelephony.org>

Member Function Documentation

T* ucommon::locked_pointer::dup ( void  ) [inline]

Create a duplicate reference counted instance of the current typed object.

Returns:
duplicate reference counted typed object.

Reimplemented from ucommon::LockedPointer.

Definition at line 1892 of file thread.h.

Here is the call graph for this function:

T* ucommon::locked_pointer::operator* ( ) [inline]

Create a duplicate reference counted instance of the current typed object by pointer reference.

Returns:
duplicate reference counted typed object.

Definition at line 1914 of file thread.h.

Here is the call graph for this function:

void ucommon::locked_pointer::operator= ( T *  object) [inline]

Replace existing object through assignment.

Parameters:
objectto assign.

Definition at line 1906 of file thread.h.

void ucommon::locked_pointer::replace ( T *  object) [inline]

Replace existing typed object with a new one for next request.

Parameters:
objectto register with pointer.

Definition at line 1899 of file thread.h.


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