Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

spinlock.h

Go to the documentation of this file.
00001 
00002 #ifndef SPINLOCK_H
00003 #define SPINLOCK_H
00004 
00005 
00006 #ifdef __cplusplus
00007 extern "C"
00008 {
00009 #endif
00010 
00011 /* prototypes for C-language interface to 68000 assembly language functions */
00012 
00013 /* acquire access to a semaphored data buffer */
00014   extern int acquire_access (short int *semaphore, double timeout);
00015 
00016 /* release semaphore when done  */
00017   extern int release_access (short int *semaphore, double timeout);
00018 
00019   extern int increment_read_status (short int *);
00020   extern int decrement_read_status (short int *);
00021   extern int increment_write_status (short int *);
00022   extern int decrement_write_status (short int *);
00023 
00024 #ifdef __cplusplus
00025 }
00026 #endif
00027 
00028 #endif

Generated on Sun Dec 2 15:56:52 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001