thr_private.h (25737) | thr_private.h (34224) |
---|---|
1/* 2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 48/* 49 * Include files. 50 */ 51#include <setjmp.h> 52#include <signal.h> 53#include <sys/types.h> 54#include <sys/time.h> | 1/* 2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 48/* 49 * Include files. 50 */ 51#include <setjmp.h> 52#include <signal.h> 53#include <sys/types.h> 54#include <sys/time.h> |
55#include <sched.h> |
|
55 56/* 57 * Kernel fatal error handler macro. 58 */ 59#define PANIC(string) _thread_exit(__FILE__,__LINE__,string) 60 61/* 62 * State change macro: --- 90 unchanged lines hidden (view full) --- 153 * Cleanup definitions. 154 */ 155struct pthread_cleanup { 156 struct pthread_cleanup *next; 157 void (*routine) (); 158 void *routine_arg; 159}; 160 | 56 57/* 58 * Kernel fatal error handler macro. 59 */ 60#define PANIC(string) _thread_exit(__FILE__,__LINE__,string) 61 62/* 63 * State change macro: --- 90 unchanged lines hidden (view full) --- 154 * Cleanup definitions. 155 */ 156struct pthread_cleanup { 157 struct pthread_cleanup *next; 158 void (*routine) (); 159 void *routine_arg; 160}; 161 |
161/* 162 * Scheduling definitions. 163 */ 164enum schedparam_policy { 165 SCHED_RR, 166 SCHED_IO, 167 SCHED_FIFO, 168 SCHED_OTHER 169}; 170 | |
171struct pthread_attr { | 162struct pthread_attr { |
172 enum schedparam_policy schedparam_policy; 173 int prio; 174 int suspend; 175 int flags; 176 void *arg_attr; 177 void (*cleanup_attr) (); 178 void *stackaddr_attr; 179 size_t stacksize_attr; 180}; 181 182struct sched_param { | 163 int schedparam_policy; |
183 int prio; | 164 int prio; |
184 void *no_data; | 165 int suspend; 166 int flags; 167 void *arg_attr; 168 void (*cleanup_attr) (); 169 void *stackaddr_attr; 170 size_t stacksize_attr; |
185}; 186 187/* 188 * Thread creation state attributes. 189 */ 190#define PTHREAD_CREATE_RUNNING 0 191#define PTHREAD_CREATE_SUSPENDED 1 192 --- 591 unchanged lines hidden --- | 171}; 172 173/* 174 * Thread creation state attributes. 175 */ 176#define PTHREAD_CREATE_RUNNING 0 177#define PTHREAD_CREATE_SUSPENDED 1 178 --- 591 unchanged lines hidden --- |