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

Comparing BasiliskII/src/Unix/video_x.cpp (file contents):
Revision 1.79 by gbeauche, 2005-05-12T11:09:31Z vs.
Revision 1.80 by gbeauche, 2005-06-11T06:43:24Z

# Line 1549 | Line 1549 | bool X11_monitor_desc::video_open(void)
1549          LOCK_FRAME_BUFFER;
1550  
1551          // Start redraw/input thread
1552 < #ifdef HAVE_PTHREADS
1552 > #ifdef USE_PTHREADS_SERVICES
1553          redraw_thread_cancel = false;
1554          Set_pthread_attr(&redraw_thread_attr, 0);
1555          redraw_thread_active = (pthread_create(&redraw_thread, &redraw_thread_attr, redraw_func, NULL) == 0);
# Line 1745 | Line 1745 | void X11_monitor_desc::video_close(void)
1745          D(bug("video_close()\n"));
1746  
1747          // Stop redraw thread
1748 < #ifdef HAVE_PTHREADS
1748 > #ifdef USE_PTHREADS_SERVICES
1749          if (redraw_thread_active) {
1750                  redraw_thread_cancel = true;
1751                  redraw_thread_cancel_ack = false;
# Line 2596 | Line 2596 | void VideoRefresh(void)
2596   const int VIDEO_REFRESH_HZ = 60;
2597   const int VIDEO_REFRESH_DELAY = 1000000 / VIDEO_REFRESH_HZ;
2598  
2599 < #ifdef HAVE_PTHREADS
2599 > #ifdef USE_PTHREADS_SERVICES
2600   static void *redraw_func(void *arg)
2601   {
2602          int fd = ConnectionNumber(x_display);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines