00001
00002 #ifndef SPINLOCK_H
00003 #define SPINLOCK_H
00004
00005
00006 #ifdef __cplusplus
00007 extern "C"
00008 {
00009 #endif
00010
00011
00012
00013
00014 extern int acquire_access (short int *semaphore, double timeout);
00015
00016
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