threads: correct 'thrd_yield()'
authorBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 18:41:38 +0000 (11:41 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 18:41:38 +0000 (11:41 -0700)
commit26d1dd1430da05b8da4b1250b299a620ecd52102
tree42b88b7eb2da37d542f0bd71615e1f8e4127f45f
parent98952a7c75650993548c6fda82273e3460268a86
threads: correct 'thrd_yield()'

The C11 thrd_yield() interface should return void. Also, it doesn't need
to do anything in our model-checker for now. I'm leaving its
implementation commented out for now, in case we find it helps for
fairness, for instance. Note that I made its location parameter non-NULL
now, too, so that we can identify the Thread, if we ever use it.
include/threads.h
libthreads.cc