diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-22 20:19:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-22 20:19:25 +0000 |
commit | 0a6fb223b6f6e7a71f733afd6dc65fb529818043 (patch) | |
tree | bf30f5f4b3fcf462008e2302d84a810974a03654 /c/src/exec/score/cpu/unix/cpu.h | |
parent | promote TOD_MICROSECONDS_TO_TICKS through API as RTEMS_MICROSECONDS_PER_TICK. (diff) | |
download | rtems-0a6fb223b6f6e7a71f733afd6dc65fb529818043.tar.bz2 |
Patch from Chris John <cjohns@awa.com.au> to add use of a select statement
in the unix port idle thread task. This should keep the entire application
from blocking when any component does a blocking application. Also added
TOD_MICROSECONDS_TO_TICKS.
Diffstat (limited to 'c/src/exec/score/cpu/unix/cpu.h')
-rw-r--r-- | c/src/exec/score/cpu/unix/cpu.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/unix/cpu.h b/c/src/exec/score/cpu/unix/cpu.h index cefb2871ca..01cbdaaa5c 100644 --- a/c/src/exec/score/cpu/unix/cpu.h +++ b/c/src/exec/score/cpu/unix/cpu.h @@ -995,6 +995,32 @@ static inline unsigned int CPU_swap_u32( * Special Purpose Routines to hide the use of UNIX system calls. */ + +/* + * Pointer to a sync io Handler + */ + +typedef void ( *rtems_sync_io_handler )( + int fd, + boolean read, + boolean wrtie, + boolean except +); + +/* returns -1 if fd to large, 0 is successful */ +int _CPU_Set_sync_io_handler( + int fd, + boolean read, + boolean write, + boolean except, + rtems_sync_io_handler handler +); + +/* returns -1 if fd to large, o if successful */ +int _CPU_Clear_sync_io_handler( + int fd +); + int _CPU_Get_clock_vector( void ); void _CPU_Start_clock( |