libstdthreads: Add C11 threads

This commit is contained in:
Sebastian Huber
2015-10-14 07:47:12 +02:00
parent e3330899f3
commit cff773f580
15 changed files with 554 additions and 75 deletions
+3 -6
View File
@@ -26,15 +26,12 @@
* $FreeBSD r279318 2015-02-26T09:42:03Z$
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <threads.h>
#include <pthread.h>
#include <sched.h>
#include <stdint.h>
#include <stdlib.h>
#include "threads.h"
struct thrd_param {
thrd_start_t func;
void *arg;
@@ -124,5 +121,5 @@ void
thrd_yield(void)
{
pthread_yield();
sched_yield();
}