summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2009-01-31 17:40:37 +0000
committerRich Hickey <richhickey@gmail.com>2009-01-31 17:40:37 +0000
commit356d267d1fee753bccae670915836f5e5877bb24 (patch)
treefe14f36eeaf6ea65df55a0a0193a6a7dd6a49e1f /src
parentde15886acc72c98f2ce1284bb54147e35d8bbd59 (diff)
fixed pmap so parallel in first n steps
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/core.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index ca3acfac..04b11d25 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -3725,7 +3725,7 @@
the coordination overhead."
([f coll]
(let [n (inc (.. Runtime getRuntime availableProcessors))
- agents (doall (map #(agent (f %)) (take n coll)))
+ agents (doall (map #(send (agent %) f) (take n coll)))
wget (fn [a] (await1 a) @a)
step (fn step [[x & xs :as s]
[a & as :as acycle]]