(untested) attempt at using new thread wait api
(untested) attempt at using new thread wait api

StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,sdalton1/legion,StanfordLegion/legion,sdalton1/legion,chuckatkins/legion,chuckatkins/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,sdalton1/legion,sdalton1/legion,sdalton1/legion,chuckatkins/legion,chuckatkins/legion,chuckatkins/legion,chuckatkins/legion,sdalton1/legion,chuckatkins/legion