gi-glib-2.0.7: 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 (ManagedPtr Once) 

Instances

WrappedPtr Once Source # 
(~) AttrOpTag tag AttrSet => Constructible Once tag Source # 

Methods

new :: MonadIO m => (ManagedPtr Once -> Once) -> [AttrOp Once tag] -> m Once

((~) * 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

HasAttributeList * Once Source # 
type AttributeList Once Source # 
type AttributeList Once

newZeroOnce :: MonadIO m => m Once Source #

Construct a Once struct initialized to zero.

Methods

initEnter

initLeave

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

Properties

retval

getOnceRetval :: MonadIO m => Once -> m (Ptr ()) Source #

once_retval :: AttrLabelProxy "retval" Source #

setOnceRetval :: MonadIO m => Once -> Ptr () -> m () Source #

status

once_status :: AttrLabelProxy "status" Source #