spinlock_types.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:0k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __ASM_SPINLOCK_TYPES_H
  2. #define __ASM_SPINLOCK_TYPES_H
  3. #ifndef __LINUX_SPINLOCK_TYPES_H
  4. # error "please don't include this file directly"
  5. #endif
  6. typedef struct {
  7. volatile unsigned int lock;
  8. } raw_spinlock_t;
  9. #define __RAW_SPIN_LOCK_UNLOCKED { 0 }
  10. typedef struct {
  11. volatile unsigned int lock;
  12. } raw_rwlock_t;
  13. #define __RAW_RW_LOCK_UNLOCKED { 0 }
  14. #endif