gi-glib-0.2.46.13: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.Once

Contents

Description

A #GOnce struct controls a one-time initialization function. Any one-time initialization function must have its own unique #GOnce struct.

Synopsis

Exported types

newtype Once Source

Constructors

Once (ForeignPtr Once) 

Instances

((~) * info (ResolveOnceMethod t Once), MethodInfo * info Once p) => IsLabel t (Once -> p) Source 

Methods

fromLabel :: Proxy# Symbol t -> Once -> p

((~) * info (ResolveOnceMethod t Once), MethodInfo * info Once p) => IsLabelProxy t (Once -> p) Source 

Methods

fromLabelProxy :: Proxy Symbol t -> Once -> p

newZeroOnce :: MonadIO m => m Once Source

Construct a Once struct initialized to zero.

Methods

onceInitEnter

onceInitLeave

onceInitLeave :: MonadIO m => Ptr () -> Word64 -> m () Source

Properties

Retval

Status