Diff for /qemu/qemu-lock.h between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2018/04/24 17:34:33 version 1.1.1.4, 2018/04/24 18:34:00
Line 224  static inline void spin_unlock(spinlock_ Line 224  static inline void spin_unlock(spinlock_
 {  {
     resetlock(lock);      resetlock(lock);
 }  }
   
 static inline int spin_trylock(spinlock_t *lock)  
 {  
     return !testandset(lock);  
 }  
 #else  #else
 static inline void spin_lock(spinlock_t *lock)  static inline void spin_lock(spinlock_t *lock)
 {  {
Line 237  static inline void spin_lock(spinlock_t  Line 232  static inline void spin_lock(spinlock_t 
 static inline void spin_unlock(spinlock_t *lock)  static inline void spin_unlock(spinlock_t *lock)
 {  {
 }  }
   
 static inline int spin_trylock(spinlock_t *lock)  
 {  
     return 1;  
 }  
 #endif  #endif
   
 #endif  #endif

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


unix.superglobalmegacorp.com