1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
4 -- Module : Foreign.Concurrent
5 -- Copyright : (c) The University of Glasgow 2003
6 -- License : BSD-style (see the file libraries/base/LICENSE)
8 -- Maintainer : ffi@haskell.org
9 -- Stability : provisional
10 -- Portability : non-portable (requires concurrency)
12 -- FFI datatypes and operations that use or require concurrency.
14 -----------------------------------------------------------------------------
16 module Foreign.Concurrent
18 -- * Concurrency-based @ForeignPtr@ operations
19 #ifdef __GLASGOW_HASKELL__
21 addForeignPtrFinalizer,
25 #ifdef __GLASGOW_HASKELL__
26 import qualified GHC.ForeignPtr
29 #ifdef __GLASGOW_HASKELL__
30 newForeignPtr = GHC.ForeignPtr.newConcForeignPtr
31 addForeignPtrFinalizer = GHC.ForeignPtr.addForeignPtrConcFinalizer