GLib.Private.get

### Method

# GLib Privateget

#### Declaration [src]

    gpointer
    g_private_get (
      GPrivate* key
    )

#### Description [src]

Returns the current value of the thread local variable `key`.

If the value has not yet been set in this thread, `NULL` is returned. Values are never copied between threads (when a new thread is created, for example).

#### Return value

Type: `gpointer`

The thread-local value.

The returned data is owned by the instance.
The return value can be `NULL`.