forked from Imagelibrary/rtems
cleanup
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_setparam"
|
#error "rtems is supposed to have sched_setparam"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_getparam"
|
#error "rtems is supposed to have sched_getparam"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_setscheduler"
|
#error "rtems is supposed to have sched_setscheduler"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_getscheduler"
|
#error "rtems is supposed to have sched_getscheduler"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_yield"
|
#error "rtems is supposed to have sched_yield"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_get_priority_max"
|
#error "rtems is supposed to have sched_get_priority_max"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_get_priority_min"
|
#error "rtems is supposed to have sched_get_priority_min"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_rr_get_interval"
|
#error "rtems is supposed to have sched_rr_get_interval"
|
||||||
@@ -22,10 +22,10 @@
|
|||||||
void test( void )
|
void test( void )
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
sruct timespec interval;
|
struct timespec interval;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
pid = 0;
|
pid = 0;
|
||||||
|
|
||||||
result = sched_rr_get_interval( pid, interval );
|
result = sched_rr_get_interval( pid, &interval );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_setparam"
|
#error "rtems is supposed to have sched_setparam"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_getparam"
|
#error "rtems is supposed to have sched_getparam"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_setscheduler"
|
#error "rtems is supposed to have sched_setscheduler"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_getscheduler"
|
#error "rtems is supposed to have sched_getscheduler"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_yield"
|
#error "rtems is supposed to have sched_yield"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_get_priority_max"
|
#error "rtems is supposed to have sched_get_priority_max"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_get_priority_min"
|
#error "rtems is supposed to have sched_get_priority_min"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <sched.h>
|
||||||
|
|
||||||
#ifndef _POSIX_PRIORITY_SCHEDULING
|
#ifndef _POSIX_PRIORITY_SCHEDULING
|
||||||
#error "rtems is supposed to have sched_rr_get_interval"
|
#error "rtems is supposed to have sched_rr_get_interval"
|
||||||
@@ -22,10 +22,10 @@
|
|||||||
void test( void )
|
void test( void )
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
sruct timespec interval;
|
struct timespec interval;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
pid = 0;
|
pid = 0;
|
||||||
|
|
||||||
result = sched_rr_get_interval( pid, interval );
|
result = sched_rr_get_interval( pid, &interval );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user