Move timeout code to other side of uthread yield.
authorKevin Klues <klueska@cs.berkeley.edu>
Fri, 21 Mar 2014 17:51:12 +0000 (10:51 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 21 Mar 2014 17:51:12 +0000 (10:51 -0700)
commita8e8089ff2cdfa4315e09649558b928f228df696
treeb028d7dc10301b52480e783020077c2d6c9a9169
parentf41337bf5b22646ec88e36feb220d819da92768f
Move timeout code to other side of uthread yield.

Also, only spin on awaiter->data if a timeout was set, and return the
proper value from the futx_wake() call.
user/pthread/futex.c