Skip to content

Commit

Permalink
Make some minor tweaks to ProcessMultiplexor.sml
Browse files Browse the repository at this point in the history
  • Loading branch information
xrchz committed Nov 11, 2017
1 parent adf95fe commit d5df1bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/Holmake/poly/ProcessMultiplexor.sml
Expand Up @@ -89,7 +89,7 @@ struct
let
open Posix.IO
val (flags,_) = getfl fd
val rdr = mkTextReader { fd = fd, name = "", initBlkMode = true }
val rdr = mkTextReader { fd = fd, name = "", initBlkMode = not(O.allSet(O.nonblock,flags)) }
in
TextIO.mkInstream (TextIO.StreamIO.mkInstream (rdr, ""))
end
Expand Down Expand Up @@ -219,9 +219,9 @@ struct

fun fill_workq monitorfn (acc as (cmds, wl : 'a worklist)) =
let
val {current_jobs,current_state,genjob,...} = wl
val {current_jobs,current_state,genjob,worklimit,...} = wl
in
if Binarymap.numItems(#current_jobs wl) >= #worklimit wl then acc
if Binarymap.numItems current_jobs >= worklimit then acc
else
case genjob current_state of
NoMoreJobs s' => (cmds, updstate s' wl)
Expand Down

0 comments on commit d5df1bc

Please sign in to comment.