pthread: Factor out common active_queue code
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 20 Oct 2015 18:47:49 +0000 (14:47 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Oct 2015 16:05:13 +0000 (12:05 -0400)
commitb50178ab79ffb1fbe6d10d5fab6a9094cc14d625
tree62675385809da8a04bca9abd1e8e59b74ae1ff85
parentd5f717133f74d1765797fadd351060e07d564361
pthread: Factor out common active_queue code

__pthread_generic_yield() isn't the greatest name for this, since it's
used in non-yield paths, but it beats reusing code, and it's not clear
if we'll want other accounting in there.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/pthread/pthread.c