sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Thread

Description

SDL offers cross-platform thread management functions. These are mostly concerned with starting threads, setting their priority, and dealing with their termination.

In addition, there is support for Thread Local Storage (data that is unique to each thread, but accessed from a single key).

On platforms without thread support (such as Emscripten when built without pthreads), these functions still exist, but things like SDL_CreateThread() will report failure without doing anything.

If you're going to work with threads, you almost certainly need to have a good understanding of thread safety measures: locking and synchronization mechanisms are handled by the functions in SDL_mutex.h. The SDL thread object.

These are opaque data.

See also
SDL_CreateThread, sDL_WaitThread

Since: 3.2.0

Synopsis

Documentation

data SDL_Thread Source #

C declaration
struct SDL_Thread, defined at SDL3/SDL_thread.h 71:16

newtype SDL_ThreadID Source #

A unique numeric ID that identifies a thread.

These are different from SDL_Thread objects, which are generally what an application will operate on, but having a way to uniquely identify a thread can be useful at times.

See also
sDL_GetThreadID, sDL_GetCurrentThreadID
C declaration
SDL_ThreadID, defined at SDL3/SDL_thread.h 85:16

Since: 3.2.0

Constructors

SDL_ThreadID 

Fields

Instances

Instances details
Bits SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

FiniteBits SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Bounded SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Enum SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Storable SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_ThreadID 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadID = D1 ('MetaData "SDL_ThreadID" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Uint64)))
Ix SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Num SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Read SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Integral SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Real SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Show SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Ord SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Prim SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasFFIType SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type FFIType SDL_ThreadID 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Bitfield SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_ThreadID "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_ThreadID "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_ThreadID -> Proxy# "unwrap" -> Int #

ty ~ Uint64 => HasField "unwrap" SDL_ThreadID ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

hasField :: SDL_ThreadID -> (ty -> SDL_ThreadID, ty) #

ty ~ Uint64 => HasField "unwrap" (Ptr SDL_ThreadID) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

getField :: Ptr SDL_ThreadID -> Ptr ty #

type Rep SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadID = D1 ('MetaData "SDL_ThreadID" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Uint64)))
type FFIType SDL_ThreadID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type CFieldType SDL_ThreadID "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

newtype SDL_TLSID Source #

Thread local storage ID.

0 is the invalid ID. An app can create these and then set data for these IDs that is unique to each thread.

See also
sDL_GetTLS, sDL_SetTLS
C declaration
SDL_TLSID, defined at SDL3/SDL_thread.h 98:23

Since: 3.2.0

Constructors

SDL_TLSID 

Instances

Instances details
Storable SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_TLSID 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSID = D1 ('MetaData "SDL_TLSID" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SDL_AtomicInt)))
Show SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

writeRaw :: Ptr SDL_TLSID -> SDL_TLSID -> IO () #

HasCField SDL_TLSID "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_TLSID "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_TLSID -> Proxy# "unwrap" -> Int #

ty ~ SDL_AtomicInt => HasField "unwrap" SDL_TLSID ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

hasField :: SDL_TLSID -> (ty -> SDL_TLSID, ty) #

ty ~ SDL_AtomicInt => HasField "unwrap" (Ptr SDL_TLSID) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

getField :: Ptr SDL_TLSID -> Ptr ty #

type Rep SDL_TLSID Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSID = D1 ('MetaData "SDL_TLSID" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SDL_AtomicInt)))
type CFieldType SDL_TLSID "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

newtype SDL_ThreadPriority Source #

The SDL thread priority.

SDL will make system changes as necessary in order to apply the thread priority. Code which attempts to control thread state related to priority should be aware that calling SDL_SetCurrentThreadPriority may alter such state. SDL_HINT_THREAD_PRIORITY_POLICY can be used to control aspects of this behavior.

C declaration
enum SDL_ThreadPriority, defined at SDL3/SDL_thread.h 111:14

Since: 3.2.0

Constructors

SDL_ThreadPriority 

Fields

Instances

Instances details
Storable SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_ThreadPriority 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadPriority = D1 ('MetaData "SDL_ThreadPriority" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadPriority" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt)))
Read SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Show SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Ord SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Prim SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

CEnum SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CEnumZ SDL_ThreadPriority 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

SequentialCEnum SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasFFIType SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type FFIType SDL_ThreadPriority 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_ThreadPriority "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_ThreadPriority "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_ThreadPriority -> Proxy# "unwrap" -> Int #

ty ~ CUInt => HasField "unwrap" SDL_ThreadPriority ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ CUInt => HasField "unwrap" (Ptr SDL_ThreadPriority) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadPriority = D1 ('MetaData "SDL_ThreadPriority" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadPriority" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt)))
type CEnumZ SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type FFIType SDL_ThreadPriority Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type CFieldType SDL_ThreadPriority "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

pattern SDL_THREAD_PRIORITY_LOW :: SDL_ThreadPriority Source #

C declaration
SDL_THREAD_PRIORITY_LOW, defined at SDL3/SDL_thread.h 112:5

pattern SDL_THREAD_PRIORITY_NORMAL :: SDL_ThreadPriority Source #

C declaration
SDL_THREAD_PRIORITY_NORMAL, defined at SDL3/SDL_thread.h 113:5

pattern SDL_THREAD_PRIORITY_HIGH :: SDL_ThreadPriority Source #

C declaration
SDL_THREAD_PRIORITY_HIGH, defined at SDL3/SDL_thread.h 114:5

pattern SDL_THREAD_PRIORITY_TIME_CRITICAL :: SDL_ThreadPriority Source #

C declaration
SDL_THREAD_PRIORITY_TIME_CRITICAL, defined at SDL3/SDL_thread.h 115:5

newtype SDL_ThreadState Source #

The SDL thread state.

The current state of a thread can be checked by calling SDL_GetThreadState.

See also
sDL_GetThreadState
C declaration
enum SDL_ThreadState, defined at SDL3/SDL_thread.h 127:14

Since: 3.2.0

Constructors

SDL_ThreadState 

Fields

Instances

Instances details
Storable SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_ThreadState 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadState = D1 ('MetaData "SDL_ThreadState" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt)))
Read SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Show SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Ord SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Prim SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

CEnum SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CEnumZ SDL_ThreadState 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

SequentialCEnum SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasFFIType SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type FFIType SDL_ThreadState 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_ThreadState "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_ThreadState "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_ThreadState -> Proxy# "unwrap" -> Int #

ty ~ CUInt => HasField "unwrap" SDL_ThreadState ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

hasField :: SDL_ThreadState -> (ty -> SDL_ThreadState, ty) #

ty ~ CUInt => HasField "unwrap" (Ptr SDL_ThreadState) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

getField :: Ptr SDL_ThreadState -> Ptr ty #

type Rep SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadState = D1 ('MetaData "SDL_ThreadState" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt)))
type CEnumZ SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type FFIType SDL_ThreadState Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type CFieldType SDL_ThreadState "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

pattern SDL_THREAD_UNKNOWN :: SDL_ThreadState Source #

The thread is not valid

C declaration
SDL_THREAD_UNKNOWN, defined at SDL3/SDL_thread.h 129:5

pattern SDL_THREAD_ALIVE :: SDL_ThreadState Source #

The thread is currently running

C declaration
SDL_THREAD_ALIVE, defined at SDL3/SDL_thread.h 130:5

pattern SDL_THREAD_DETACHED :: SDL_ThreadState Source #

The thread is detached and can't be waited on

C declaration
SDL_THREAD_DETACHED, defined at SDL3/SDL_thread.h 131:5

pattern SDL_THREAD_COMPLETE :: SDL_ThreadState Source #

The thread has finished and should be cleaned up with SDL_WaitThread()

C declaration
SDL_THREAD_COMPLETE, defined at SDL3/SDL_thread.h 132:5

newtype SDL_ThreadFunction_Aux Source #

Auxiliary type used by SDL_ThreadFunction

C declaration
SDL_ThreadFunction, defined at SDL3/SDL_thread.h 143:23

Constructors

SDL_ThreadFunction_Aux 

Fields

Instances

Instances details
Generic SDL_ThreadFunction_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_ThreadFunction_Aux 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction_Aux = D1 ('MetaData "SDL_ThreadFunction_Aux" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadFunction_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO CInt))))
FromFunPtr SDL_ThreadFunction_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ToFunPtr SDL_ThreadFunction_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_ThreadFunction_Aux "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_ThreadFunction_Aux "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_ThreadFunction_Aux -> Proxy# "unwrap" -> Int #

ty ~ (Ptr Void -> IO CInt) => HasField "unwrap" SDL_ThreadFunction_Aux ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ (Ptr Void -> IO CInt) => HasField "unwrap" (Ptr SDL_ThreadFunction_Aux) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction_Aux = D1 ('MetaData "SDL_ThreadFunction_Aux" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadFunction_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO CInt))))
type CFieldType SDL_ThreadFunction_Aux "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

newtype SDL_ThreadFunction Source #

The function passed to SDL_CreateThread() as the new thread's entry point.

data
what was passed as data to SDL_CreateThread().
Returns
a value that can be reported through SDL_WaitThread().
C declaration
SDL_ThreadFunction, defined at SDL3/SDL_thread.h 143:23

Since: 3.2.0

Instances

Instances details
Storable SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_ThreadFunction 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction = D1 ('MetaData "SDL_ThreadFunction" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadFunction" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_ThreadFunction_Aux))))
Show SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Ord SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasFFIType SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_ThreadFunction "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_ThreadFunction "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Methods

offset# :: Proxy# SDL_ThreadFunction -> Proxy# "unwrap" -> Int #

ty ~ FunPtr SDL_ThreadFunction_Aux => HasField "unwrap" SDL_ThreadFunction ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ FunPtr SDL_ThreadFunction_Aux => HasField "unwrap" (Ptr SDL_ThreadFunction) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_ThreadFunction = D1 ('MetaData "SDL_ThreadFunction" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ThreadFunction" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_ThreadFunction_Aux))))
type FFIType SDL_ThreadFunction Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type CFieldType SDL_ThreadFunction "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

sDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER :: ByteString Source #

C declaration
macro SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER, literal "SDL.thread.create.entry_function", defined at SDL3/SDL_thread.h 360:9

sDL_PROP_THREAD_CREATE_NAME_STRING :: ByteString Source #

C declaration
macro SDL_PROP_THREAD_CREATE_NAME_STRING, literal "SDL.thread.create.name", defined at SDL3/SDL_thread.h 361:9

sDL_PROP_THREAD_CREATE_USERDATA_POINTER :: ByteString Source #

C declaration
macro SDL_PROP_THREAD_CREATE_USERDATA_POINTER, literal "SDL.thread.create.userdata", defined at SDL3/SDL_thread.h 362:9

sDL_PROP_THREAD_CREATE_STACKSIZE_NUMBER :: ByteString Source #

C declaration
macro SDL_PROP_THREAD_CREATE_STACKSIZE_NUMBER, literal "SDL.thread.create.stacksize", defined at SDL3/SDL_thread.h 363:9

newtype SDL_TLSDestructorCallback_Aux Source #

Auxiliary type used by SDL_TLSDestructorCallback

C declaration
SDL_TLSDestructorCallback, defined at SDL3/SDL_thread.h 553:24

Constructors

SDL_TLSDestructorCallback_Aux 

Fields

Instances

Instances details
Generic SDL_TLSDestructorCallback_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_TLSDestructorCallback_Aux 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback_Aux = D1 ('MetaData "SDL_TLSDestructorCallback_Aux" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSDestructorCallback_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO ()))))
FromFunPtr SDL_TLSDestructorCallback_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ToFunPtr SDL_TLSDestructorCallback_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_TLSDestructorCallback_Aux "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type CFieldType SDL_TLSDestructorCallback_Aux "unwrap" 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ (Ptr Void -> IO ()) => HasField "unwrap" SDL_TLSDestructorCallback_Aux ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ (Ptr Void -> IO ()) => HasField "unwrap" (Ptr SDL_TLSDestructorCallback_Aux) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback_Aux Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback_Aux = D1 ('MetaData "SDL_TLSDestructorCallback_Aux" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSDestructorCallback_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO ()))))
type CFieldType SDL_TLSDestructorCallback_Aux "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

newtype SDL_TLSDestructorCallback Source #

The callback used to cleanup data passed to SDL_SetTLS.

This is called when a thread exits, to allow an app to free any resources.

value
a pointer previously handed to SDL_SetTLS.
See also
sDL_SetTLS
C declaration
SDL_TLSDestructorCallback, defined at SDL3/SDL_thread.h 553:24

Since: 3.2.0

Instances

Instances details
Storable SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Generic SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Associated Types

type Rep SDL_TLSDestructorCallback 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback = D1 ('MetaData "SDL_TLSDestructorCallback" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSDestructorCallback" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_TLSDestructorCallback_Aux))))
Show SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Eq SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

Ord SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasFFIType SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ReadRaw SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

StaticSize SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

WriteRaw SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

HasCField SDL_TLSDestructorCallback "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ FunPtr SDL_TLSDestructorCallback_Aux => HasField "unwrap" SDL_TLSDestructorCallback ty Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

ty ~ FunPtr SDL_TLSDestructorCallback_Aux => HasField "unwrap" (Ptr SDL_TLSDestructorCallback) (Ptr ty :: Type) Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type Rep SDL_TLSDestructorCallback = D1 ('MetaData "SDL_TLSDestructorCallback" "SDL3.Sys.Bindgen.Thread" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_TLSDestructorCallback" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_TLSDestructorCallback_Aux))))
type FFIType SDL_TLSDestructorCallback Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread

type CFieldType SDL_TLSDestructorCallback "unwrap" Source # 
Instance details

Defined in SDL3.Sys.Bindgen.Thread