--Multipart_Thu_Apr__9_21:13:32_1998-1 Content-Type: text/plain; charset=ISO-2022-JP Á°ÅĤǤ¹¡£ In message "[ruby-list:7401] Re: [Q] Thread" Yukihiro Matsumoto <matz / netlab.co.jp> wrote: |¤ó¤Ç¡¤readline¤Îinfo¤ò¸«¤ë¤Èrl_event_hook¤Ê¤ë¥Õ¥Ã¥¯¤¬¤¢¤ë¤è |¤¦¤Ç¤¹¤«¤é¡¤¤³¤ì¤Ç¥¤¥Ù¥ó¥È¤Î¥Á¥§¥Ã¥¯¤ò¹Ô¤¨¤Ð¥¹¥ì¥Ã¥ÉÂбþ¤Ë¤Ê |¤ë¤ó¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«(̤³Îǧ)¡¥ ¤³¤ó¤Ê´¶¤¸¤ÇÎɤ¤¤Ç¤·¤ç¤¦¤«¡£ --Multipart_Thu_Apr__9_21:13:32_1998-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="readline.c.diff" Content-Transfer-Encoding: 7bit --- readline.c~ Thu Mar 19 22:18:02 1998 +++ readline.c Thu Apr 9 20:56:42 1998 @@ -275,6 +275,14 @@ return str_new2(entry->line); } +#ifdef THREAD +static int readline_event_hook() +{ + if (!thread_critical) thread_schedule(); + return 0; +} +#endif /* THREAD */ + void Init_readline(void) { extern VALUE mEnumerable; @@ -318,4 +326,8 @@ rl_attempted_completion_function CPPFunction *) readline_attempted_completion_function; + +#ifdef THREAD + rl_event_hook eadline_event_hook; +#endif /* THREAD */ } --Multipart_Thu_Apr__9_21:13:32_1998-1 Content-Type: text/plain; charset=ISO-2022-JP |Á°ÅĤµ¤ó¤«¤éreadline-1.7¤¬ 뤫¡¨Â ¾å¤Î¥Ñ¥Ã¥Á¤ÇÌäÂê¤Ê¤±¤ì¤Ðin.coming¤Ëput¤·¤è¤¦¤È»×¤¤¤Þ¤¹¡£ -- Á°ÅÄ ¨Â ÍõìôéðáòôßÔèõßÁðòß߹߲±º±³º³²ß±¹¹¸±