pthread_yield()
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 19 Apr 2010 06:28:33 +0000 (23:28 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:43 +0000 (17:35 -0700)
commit8608b3236f72de40177372802a0527e5729cca96
tree3d2110b3ad291a27fc5cf7d6ec1aea538b6b5fd4
parentec7a62ff27c055b2174d9a4a9cef0976616da191
pthread_yield()

This allows a pthread to yield, which basically saves its state, puts it
on the ready queue, and jumps to the transition stack / vcore_entry().
Lightly tested.

This needs save_ros_tf() to be implemented on sparc.
kern/arch/sparc/ros/trapframe.h
tests/pthread_test.c
user/include/i686/arch.h
user/include/i686/vcore.h
user/include/pthread.h
user/include/sparc/arch.h
user/include/sparc/vcore.h
user/parlib/pthread.c