From: stolz Date: Fri, 30 Aug 2002 07:56:48 +0000 (+0000) Subject: [project @ 2002-08-30 07:56:48 by stolz] X-Git-Tag: nhc98-1-18-release~892 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=fb93583b2708366bef7afd3f8749736b3a7961b6;p=haskell-directory.git [project @ 2002-08-30 07:56:48 by stolz] Fix sample way of expressing 'killThread' in docs. From: Dean Herington PLEASE MERGE --- diff --git a/GHC/Conc.lhs b/GHC/Conc.lhs index e5c3333..3c994f3 100644 --- a/GHC/Conc.lhs +++ b/GHC/Conc.lhs @@ -93,7 +93,7 @@ The memory used by the thread will be garbage collected if it isn\'t referenced from anywhere. The 'killThread' function may be defined in terms of 'throwTo': -> killThread = throwTo (AsyncException ThreadKilled) +> killThread tid = throwTo tid (AsyncException ThreadKilled) -} killThread :: ThreadId -> IO () killThread (ThreadId id) = IO $ \ s ->