glibmm: Glib::StaticPrivate Struct Reference

glibmm 2.33.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions | Related Functions
Glib::StaticPrivate Struct Reference

Thread-local data pointer. More...

`#include <glibmm/thread.h>`

List of all members.

## Public Types
typedef void(* | DestroyNotifyFunc )(void*)
## Public Member Functions
T* | get ()
void | set (T* data, DestroyNotifyFunc notify_func=&StaticPrivate< T >::delete_ptr)
GStaticPrivate* | gobj ()
## Static Public Member Functions
static void | delete_ptr (void* data)
## Related Functions
(Note that these are not member functions.)
#define | GLIBMM_STATIC_PRIVATE_INIT { G_STATIC_PRIVATE_INIT }
| Initializer macro for Glib::StaticPrivate.

## Detailed Description

Thread-local data pointer.

Deprecated:
  Use Glib::Threads::Private instead, which can be used statically.

## Member Typedef Documentation

typedef void(* Glib::StaticPrivate::DestroyNotifyFunc)(void*)

## Member Function Documentation

static void Glib::StaticPrivate::delete_ptr | ( | void * | data | ) | `[static]`

T* Glib::StaticPrivate::get | ( |  | ) | `[inline]`

GStaticPrivate* Glib::StaticPrivate::gobj | ( |  | ) | `[inline]`

void Glib::StaticPrivate::set | ( | T * | data,
|  | DestroyNotifyFunc | notify_func = `&StaticPrivate< T >::delete_ptr`
| ) |  | `[inline]`

## Friends And Related Function Documentation

#define GLIBMM_STATIC_PRIVATE_INIT { G_STATIC_PRIVATE_INIT }`[related]`

Initializer macro for Glib::StaticPrivate.

Deprecated:
  Glib::StaticPrivate is deprecated in favour of Glib::Threads::Private, which can be used statically.