Google

Go to the first, previous, next, last section, table of contents.


ox_reset,ox_intr,register_handler

ox_reset(number)
:: ¥×¥í¥»¥¹¤Î¥ê¥»¥Ã¥È
ox_intr(number)
:: ¥×¥í¥»¥¹¤Î¤Ë SIGINT Á÷ÉÕ
register_handler(func)
:: ¥×¥í¥»¥¹¤Î¥ê¥»¥Ã¥È¤Î¤¿¤á¤Î´Ø¿ôÅÐÏ¿
return
1
number
¿ô (¥×¥í¥»¥¹¼±ÊÌ»Ò)
func
´Ø¿ô»Ò¤Þ¤¿¤Ï 0
  • ox_reset() ¤Ï, ¼±ÊÌ»Ò number ¤Î¥×¥í¥»¥¹¤ò¥ê¥»¥Ã¥È¤·, ¥³¥Þ¥ó ¥É¼õ¤±ÉÕ¤±¾õÂ֤ˤ¹¤ë.
  • ¤½¤Î¥×¥í¥»¥¹¤¬´û¤Ë½ñ¤­½Ð¤·¤¿, ¤¢¤ë¤¤¤Ï¸½ºß½ñ¤­½Ð¤·Ãæ¤Î¥Ç¡¼¥¿¤¬¤¢¤ë¾ì¹ç, ¤½¤ì¤òÁ´ÉôÆÉ¤ß½Ð¤·, ½ÐÎϥХåե¡¤ò¶õ¤Ë¤·¤¿»þÅÀ¤ÇÌá¤ë.
  • »Ò¥×¥í¥»¥¹¤¬ RUN ¾õÂ֤ξì¹ç¤Ç¤â, ³ä¤ê¹þ¤ß¤Ë¤è¤ê¶¯À©Åª¤Ë·×»»¤ò½ªÎ»¤µ¤»¤ë.
  • ʬ»¶·×»»¤ò¹Ô¤¦È¡¿ô¤ÎÀèÆ¬¤Ç, »ÈÍѤ¹¤ë¥×¥í¥»¥¹¤ËÂФ·¤Æ¼Â¹Ô¤¹¤ë. ¤¢¤ë¤¤¤Ï ·×»»ÅÓÃæ¤Ç¤Î¶¯À©ÃæÃǤËÍѤ¤¤ë.
  • ox_intr() ¤Ï, ¼±ÊÌ»Ò number ¤Î¥×¥í¥»¥¹¤ò¤ËÂФ·¤Æ SIGINT ¤òÁ÷ÉÕ¤¹¤ë. SIGINT ¤ËÂФ¹¤ë¥×¥í¥»¥¹¤Îưºî¤Ï µ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¤¬, `ox_asir' ¤Î¾ì¹ç, ¤¿¤À¤Á¤Ë debug mode ¤Ë Æþ¤ë. X ¾å¤Çưºî¤·¤Æ¤¤¤ë¾ì¹ç, ¥Ç¥Ð¥Ã¥°¥³¥Þ¥ó¥ÉÆþÎÏÍѤΥ¦¥£¥ó¥É¥¦¤¬ ¥Ý¥Ã¥×¥¢¥Ã¥×¤¹¤ë.
  • register_handler() ¤Ï, C-c ¤Ê¤É¤Ë¤è¤ë³ä¤ê¹þ¤ß¤ÎºÝ¤Ë, u ¤ò»ØÄꤹ¤ë¤³¤È¤Ç, ̵°ú¿ô¥æ¡¼¥¶ÄêµÁ´Ø¿ô func() ¤¬¸Æ¤Ó½Ð¤µ¤ì¤ë ¤è¤¦¤ËÀßÄꤹ¤ë. ¤³¤Î´Ø¿ô¤Ë, ox_reset() ¤ò¸Æ¤Ó½Ð¤µ¤»¤ë¤³¤È¤Ç, ³ä¤ê¹þ¤ß¤ÎºÝ¤Ë¼«Æ°Åª¤Ë OpenXM server ¤Î¥ê¥»¥Ã¥È¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤ë.
  • func ¤Ë 0 ¤ò»ØÄꤹ¤ë¤³¤È¤Ç, ÀßÄê¤ò²ò½ü¤Ç¤­¤ë.
[10] ox_launch();
0
[11] ox_rpc(0,"fctr",x^100-y^100);
0
[12] ox_reset(0); /* xterm ¤Î¥¦¥£¥ó¥É¥¦¤Ë¤Ï                             */
1                 /* usr1 : return to toplevel by SIGUSR1 ¤¬É½¼¨¤µ¤ì¤ë. */
[340] Procs=[ox_launch(),ox_launch()];
[0,1]
[341] def reset() { extern Procs; map(ox_reset,Procs);}
[342] map(ox_rpc,Procs,"fctr",x^100-y^100);
[0,0]
[343] register_handler(reset);
1
[344] interrupt ?(q/t/c/d/u/w/?) u
Abort this computation? (y or n) y
Calling the registered exception handler...done.
return to toplevel
»²¾È
section ox_rpc, ox_cmo_rpc, ox_execute_string


Go to the first, previous, next, last section, table of contents.