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.Thread

Contents

Description

The #GThread struct represents a running thread. This struct is returned by g_thread_new() or g_thread_try_new(). You can obtain the #GThread struct representing the current thread by calling g_thread_self().

GThread is refcounted, see g_thread_ref() and g_thread_unref(). The thread represented by it holds a reference while it is running, and g_thread_join() consumes the reference that it is given, so it is normally not necessary to manage GThread references explicitly.

The structure is opaque -- none of its fields may be directly accessed.

Synopsis

Exported types

newtype Thread Source #

Constructors

Thread (ManagedPtr Thread) 

Instances

BoxedObject Thread Source # 

Methods

boxedType :: Thread -> IO GType

((~) * info (ResolveThreadMethod t Thread), MethodInfo * info Thread p) => IsLabel t (Thread -> p) Source # 

Methods

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

((~) * info (ResolveThreadMethod t Thread), MethodInfo * info Thread p) => IsLabelProxy t (Thread -> p) Source # 

Methods

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

HasAttributeList * Thread Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * ThreadUnrefMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadUnrefMethodInfo Thread -> signature -> s

((~) * signature (m Thread), MonadIO m) => MethodInfo * ThreadRefMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadRefMethodInfo Thread -> signature -> s

((~) * signature (m (Ptr ())), MonadIO m) => MethodInfo * ThreadJoinMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadJoinMethodInfo Thread -> signature -> s

type AttributeList Thread Source # 
type AttributeList Thread

Methods

errorQuark

exit

threadExit :: MonadIO m => Ptr () -> m () Source #

join

data ThreadJoinMethodInfo Source #

Instances

((~) * signature (m (Ptr ())), MonadIO m) => MethodInfo * ThreadJoinMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadJoinMethodInfo Thread -> signature -> s

threadJoin :: MonadIO m => Thread -> m (Ptr ()) Source #

ref

data ThreadRefMethodInfo Source #

Instances

((~) * signature (m Thread), MonadIO m) => MethodInfo * ThreadRefMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadRefMethodInfo Thread -> signature -> s

self

unref

data ThreadUnrefMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * ThreadUnrefMethodInfo Thread signature Source # 

Methods

overloadedMethod :: MethodProxy ThreadUnrefMethodInfo Thread -> signature -> s

yield