KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
sched.h File Reference

Basic sys/sched.h file for newlib. More...

#include <kos/cdefs.h>
#include <kos/thread.h>
#include <kos/sem.h>
#include <kos/cond.h>
#include <kos/mutex.h>
#include <kos/tls.h>
#include <kos/once.h>

Go to the source code of this file.

Data Structures

struct  sched_param
 Scheduling Parameters, P1003.1b-1993, p. More...
 
struct  pthread_mutexattr_t
 POSIX mutex attributes. More...
 
struct  pthread_condattr_t
 POSIX condition variable attributes. More...
 
struct  pthread_attr_t
 POSIX thread attributes. More...
 

Macros

#define SCHED_OTHER   0
 Other scheduling.
 
#define SCHED_FIFO   1
 FIFO scheduling.
 
#define SCHED_RR   2
 Round-robin scheduling.
 

Typedefs

typedef kthread_tpthread_t
 POSIX thread type.
 
typedef mutex_t pthread_mutex_t
 POSIX mutex type.
 
typedef condvar_t pthread_cond_t
 POSIX condition type.
 
typedef kthread_once_t pthread_once_t
 POSIX once control.
 
typedef kthread_key_t pthread_key_t
 POSIX thread data key.
 

Detailed Description

Basic sys/sched.h file for newlib.

This file specifies a few things to make sure pthreads stuff compiles.

Macro Definition Documentation

◆ SCHED_FIFO

#define SCHED_FIFO   1

FIFO scheduling.

◆ SCHED_OTHER

#define SCHED_OTHER   0

Other scheduling.

◆ SCHED_RR

#define SCHED_RR   2

Round-robin scheduling.

Typedef Documentation

◆ pthread_cond_t

POSIX condition type.

◆ pthread_key_t

POSIX thread data key.

◆ pthread_mutex_t

POSIX mutex type.

◆ pthread_once_t

POSIX once control.

◆ pthread_t

typedef kthread_t* pthread_t

POSIX thread type.