threads_internal: add 'thread_switch_to_master()' internally
authorBrian Norris <banorris@uci.edu>
Tue, 10 Apr 2012 21:09:42 +0000 (14:09 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 10 Apr 2012 21:09:42 +0000 (14:09 -0700)
commit8e649bb08299bf12cc4e50ffd5f956a4faf32f8f
treef218a799efb333df6f3159a3de9877e80727a41b
parentee547e8eac86141cfa53f3ba0dd7198a5112aff4
threads_internal: add 'thread_switch_to_master()' internally

In progress: moving more model-checking/thread actions so that they are
performed only by a system thread, not by the user code.

For now, we replace our uses of thread_yield() (which simply switched to the
next user thread) while thread_switch_to_master() (which will later perform
intermediate actions before choosing the next user thread).

Also, we can begin creating internal and external interfaces in
threads_indernal.h and libthreads.h, respectively.
Makefile
libatomic.cc
libthreads.cc
threads_internal.h [new file with mode: 0644]