@@ -65,7 +65,7 @@ defmodule Kernel.ParallelCompiler do
65
65
# Release waiting processes
66
66
defp spawn_compilers ( [ h | t ] , original , output , callbacks , waiting , queued , schedulers , result ) when is_pid ( h ) do
67
67
{ ^ h , ref , _ } = List . keyfind ( waiting , h , 0 )
68
- h <- { ref , :ready }
68
+ send h , { ref , :ready }
69
69
waiting = List . keydelete ( waiting , h , 0 )
70
70
spawn_compilers ( t , original , output , callbacks , waiting , queued , schedulers , result )
71
71
end
@@ -107,7 +107,7 @@ defmodule Kernel.ParallelCompiler do
107
107
defp spawn_compilers ( [ ] , original , output , callbacks , waiting , queued , schedulers , result ) when length ( waiting ) == length ( queued ) do
108
108
Enum . each queued , fn { child , _ , _ } ->
109
109
{ ^ child , ref , _ } = List . keyfind ( waiting , child , 0 )
110
- child <- { ref , :release }
110
+ send child , { ref , :release }
111
111
end
112
112
wait_for_messages ( [ ] , original , output , callbacks , waiting , queued , schedulers , result )
113
113
end
@@ -126,7 +126,7 @@ defmodule Kernel.ParallelCompiler do
126
126
end
127
127
128
128
# Release the module loader which is waiting for an ack
129
- child <- { ref , :ack }
129
+ send child , { ref , :ack }
130
130
131
131
available = lc { pid , _ , waiting_module } in list waiting ,
132
132
waiting_module == module ,
@@ -138,7 +138,7 @@ defmodule Kernel.ParallelCompiler do
138
138
{ :waiting , child , ref , on } ->
139
139
# Oops, we already got this module. Do not put it on waiting.
140
140
if :lists . member ( on , result ) do
141
- child <- { :release , ref }
141
+ send child , { :release , ref }
142
142
else
143
143
waiting = [ { child , ref , on } | waiting ]
144
144
end
0 commit comments