With the help of the IRC folks I solved my own problem.

I thought I'd share my findings:

You cannot safely call pmap inside of another pmap function.  Because
pmap is implemented on top of agents, the actual calls to your
function are agent sends.  When a send happens *inside* of another
agent function, it is delayed until the outer function returns.  That
means your inner pmap will give completely bogus results.

This should be documented, I think.

On Feb 7, 7:14 pm, Jeffrey Straszheim <straszheimjeff...@gmail.com>
wrote:
> Are there any knows problems with nesting calls to pmap inside of other
> calls to pmap ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to