Commit Briefs

Russ Cox

libthread: simplify

Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355.


Russ Cox

libthread: add threadmaybackground

Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.



Russ Cox

libthread: use consistent stack calculation code in makecontext

Also reduce duplication: makecontext is per-arch not per-os-arch. May fix #353.


Russ Cox

libthread: remove Linux 2.4 code

Linux.c was for Linux 2.4 and is no longer used directly, only indirectly because NetBSD.c was a 1-line file #including Linux.c. So mv Linux.c NetBSD.c. Also rm Linux-*-asm.s which was for Linux 2.4 as well.


Russ Cox

libthread: rm FreeBSD 4 code

Pretty sure FreeBSD 4 is gone now. :-)


Russ Cox

openbsd updates (thanks Pascal Stumpf)

R=rsc http://codereview.appspot.com/6401049


Russ Cox

build: OS X 64-bit build

R=rsc http://codereview.appspot.com/4838047



rsc

fixes


rsc

more sparc64


rsc

sparc64 rule


rsc

add wait