[Haskell-cafe] Getting the 'ThreadId' of the calling thread
Albert Y. C. Lai
trebla at vex.net
Thu Aug 1 21:18:44 CEST 2013
On 13-07-29 08:35 AM, Nikita Karetnikov wrote:
> I feel that a 'myThreadId' action, which is defined in this module ,
> is useless, but I'm not sure. I think it will always return the
> "Map.find: element not in the map" exception because a 'threadMap'
> contains an empty 'ThreadMap'.
> Is it right, or am I missing something?
Other actions such as withLinksDo and forkLinkIO' insert stuff into
threadMap. It can be non-mepty.
More information about the Haskell-Cafe