[Haskell-cafe] Getting the 'ThreadId' of the calling thread

Nikita Karetnikov nikita at karetnikov.org
Mon Jul 29 14:35:49 CEST 2013


(I'm trying to update a package that was written with GHC 6.10.4 in
mind.)

I feel that a 'myThreadId' action, which is defined in this module [1],
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?

[1] https://gitweb.torproject.org/tordnsel.git/blob/HEAD:/src/TorDNSEL/Control/Concurrent/Link/Internals.hs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130729/f398f88f/attachment.pgp>


More information about the Haskell-Cafe mailing list