ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/video_vosf.h
(Generate patch)

Comparing BasiliskII/src/Unix/video_vosf.h (file contents):
Revision 1.34 by gbeauche, 2003-09-29T07:02:58Z vs.
Revision 1.35 by gbeauche, 2003-09-29T08:27:24Z

# Line 171 | Line 171 | static inline int find_next_page_clear(i
171   static pthread_mutex_t vosf_lock = PTHREAD_MUTEX_INITIALIZER;   // Mutex to protect frame buffer (dirtyPages in fact)
172   #define LOCK_VOSF pthread_mutex_lock(&vosf_lock);
173   #define UNLOCK_VOSF pthread_mutex_unlock(&vosf_lock);
174 + #elif defined(HAVE_SPINLOCKS)
175 + static spinlock_t vosf_lock = SPIN_LOCK_UNLOCKED;                               // Mutex to protect frame buffer (dirtyPages in fact)
176 + #define LOCK_VOSF spin_lock(&vosf_lock)
177 + #define UNLOCK_VOSF spin_unlock(&vosf_lock)
178   #else
179   #define LOCK_VOSF
180   #define UNLOCK_VOSF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines