fix threaded PPC build, refactor new semaphore code
authorNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 17:39:57 +0000 (19:39 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 19:48:50 +0000 (21:48 +0200)
commitd1942842cebf682ea4161792b2920eec7ccfe179
treeeb7239e4851f1a3899c9e54edfbd38425ae78ab9
parenta98da03220d7345b066e4092285f0dfce55d9374
fix threaded PPC build, refactor new semaphore code

 Refactor the recent semaphore code into nicer shape.

 * No point in having these functions as inline functions.

 * Move shared logic to os-common.c, and conditionalize it on
   CANNOT_USE_POSIX_SEM_T, which platform specific headers can define if they
   implement their own versions. (Darwin now, Windows in the future.)

 * PPC needs genesis/thread.h in assembly, not thread.h.
src/runtime/darwin-os.c
src/runtime/darwin-os.h
src/runtime/os-common.c
src/runtime/os.h
src/runtime/ppc-assem.S
src/runtime/thread.c
src/runtime/thread.h