{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} module HROOT.Core.TMutex.RawType where import Foreign.Ptr import FFICXX.Runtime.Cast data RawTMutex newtype TMutex = TMutex (Ptr RawTMutex) deriving (Eq, Ord, Show) instance () => FPtr (TMutex) where type Raw TMutex = RawTMutex get_fptr (TMutex ptr) = ptr cast_fptr_to_obj = TMutex