pthread-0.1.1: Bindings for the pthread library.

Safe HaskellNone
LanguageHaskell2010

Foreign.Concurrent.PThread

Contents

Description

PThread bindings

Synopsis

thread local storage

data Key Source #

Stands for pthread_key_t.

Instances

Eq Key Source # 

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key Source # 

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

Show Key Source # 

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Storable Key Source # 

Methods

sizeOf :: Key -> Int #

alignment :: Key -> Int #

peekElemOff :: Ptr Key -> Int -> IO Key #

pokeElemOff :: Ptr Key -> Int -> Key -> IO () #

peekByteOff :: Ptr b -> Int -> IO Key #

pokeByteOff :: Ptr b -> Int -> Key -> IO () #

peek :: Ptr Key -> IO Key #

poke :: Ptr Key -> Key -> IO () #

keyCreate :: FunPtr (Ptr a -> IO ()) -> IO Key Source #

Stands for pthread_key_create.

keyDelete :: Key -> IO () Source #

Stands for pthread_key_delete.

setSpecific :: Key -> Ptr a -> IO () Source #

Stands for pthread_setspecific.

getSpecific :: Key -> IO (Ptr a) Source #

Stands for pthread_getspecific.