mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-28 15:53:06 +08:00
libstdthreads: Add C11 threads
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user