System.Win32.Thread

Win32-2.6.1.0: A binding to part of the Win32 library

Copyright | 2013 shelarcy
License | BSD-style
Maintainer | shelarcy@gmail.com
Stability | Provisional
Portability | Non-portable (Win32 API)
Safe Haskell | Safe-Inferred
Language | Haskell2010

System.Win32.Thread

Description

This modules provides just thread control APIs. This modules doesn't provide thread register control APIs. Because these APIs are used for Debugging.

# Documentation

type THANDLE = Ptr () #

type TID = DWORD #

getCurrentThread :: IO THANDLE #

suspendThread :: THANDLE -> IO DWORD #

c_SuspendThread :: THANDLE -> IO DWORD #

resumeThread :: THANDLE -> IO DWORD #

c_ResumeThread :: THANDLE -> IO DWORD #

withSuspendedThread :: THANDLE -> IO a -> IO a #

getThreadId :: THANDLE -> IO TID #

c_GetThreadId :: THANDLE -> IO TID #

getCurrentThreadId :: IO TID #

c_GetCurrentThreadId :: IO TID #