medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6c14d970d9a78d434be65479582364045c977598
parent 1bfe9b5da3363badcec98597292260e5e0191317
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Sep  2 15:50:57 -0700

Add thread_yield

Diffstat:
unix_thread.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/unix_thread.h b/unix_thread.h @@ -47,4 +47,11 @@ inline void thread_join( Thread * thread ) { } } +inline void thread_yield() { + int ok = pthread_yield(); + if( ok == -1 ) { + err( 1, "pthread_yield" ); + } +} + #endif // _UNIX_THREAD_H_