# | Line 249 | Line 249 | static inline void do_handle_screen_faul | |
---|---|---|
249 | ||
250 | const int page = (addr - mainBuffer.memStart) >> mainBuffer.pageBits; | |
251 | caddr_t page_ad = (caddr_t)(addr & ~(mainBuffer.pageSize - 1)); | |
252 | < | #ifdef HAVE_PTHREADS |
253 | < | pthread_mutex_lock(&Screen_draw_lock); |
254 | < | #endif |
252 | > | LOCK_VOSF; |
253 | PFLAG_SET(page); | |
254 | mprotect(page_ad, mainBuffer.pageSize, PROT_READ | PROT_WRITE); | |
255 | < | #ifdef HAVE_PTHREADS |
258 | < | pthread_mutex_unlock(&Screen_draw_lock); |
259 | < | #endif |
255 | > | UNLOCK_VOSF; |
256 | } | |
257 | ||
258 | #if defined(HAVE_SIGINFO_T) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |