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); |
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; |
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); |