… | |
… | |
48 | #include "../config.h" |
48 | #include "../config.h" |
49 | #include "rxvt.h" |
49 | #include "rxvt.h" |
50 | #include "rxvtperl.h" |
50 | #include "rxvtperl.h" |
51 | #include "version.h" |
51 | #include "version.h" |
52 | #include "command.h" |
52 | #include "command.h" |
53 | |
|
|
54 | #if HAVE_SCHED_YIELD |
|
|
55 | #undef HAVE_SCHED_YIELD // disabled for the time being |
|
|
56 | //# include <sched.h> |
|
|
57 | #endif |
|
|
58 | |
53 | |
59 | #ifdef KEYSYM_RESOURCE |
54 | #ifdef KEYSYM_RESOURCE |
60 | # include "keyboard.h" |
55 | # include "keyboard.h" |
61 | #endif |
56 | #endif |
62 | |
57 | |
… | |
… | |
1093 | |
1088 | |
1094 | want_refresh = 1; |
1089 | want_refresh = 1; |
1095 | w.start (w.at + SCROLLBAR_CONTINUOUS_DELAY); |
1090 | w.start (w.at + SCROLLBAR_CONTINUOUS_DELAY); |
1096 | } |
1091 | } |
1097 | } |
1092 | } |
1098 | #endif |
|
|
1099 | |
|
|
1100 | #if HAVE_SCHED_YIELD |
|
|
1101 | static struct event_handler |
|
|
1102 | { |
|
|
1103 | check_watcher cw_yield; |
|
|
1104 | |
|
|
1105 | void yield (check_watcher &w) |
|
|
1106 | { |
|
|
1107 | sched_yield (); |
|
|
1108 | w.stop (); |
|
|
1109 | } |
|
|
1110 | |
|
|
1111 | event_handler () |
|
|
1112 | : cw_yield (this, &event_handler::yield) |
|
|
1113 | { |
|
|
1114 | } |
|
|
1115 | } event_handler; |
|
|
1116 | #endif |
1093 | #endif |
1117 | |
1094 | |
1118 | bool |
1095 | bool |
1119 | rxvt_term::pty_fill () |
1096 | rxvt_term::pty_fill () |
1120 | { |
1097 | { |