Scroll to navigation

XFlush(3X11) XLIB FUNCTIONS XFlush(3X11)

̾Á°

XFlush, XSync, XEventsQueued, XPending - ¥¤¥Ù¥ó¥È¥­¥å¡¼¤Î½ÐÎϥХåե¡¤ò°·¤¦

½ñ¼°

XFlush(display)
Display *display;

XSync(display, discard)
Display *display;
Bool discard;

int XEventsQueued(display, mode)
Display *display;
int mode;

int XPending(display)
Display *display;

°ú¤­¿ô

XSync ¤¬¥¤¥Ù¥ó¥È¥­¥å¡¼¤ÎÁ´¤Æ¤Î¥¤¥Ù¥ó¥È¤òÇË´þ¤¹¤ë¤«¤É¤¦¤«»Ø¼¨¤¹¤ë ¿¿µ¶Ãͤò»ØÄꤹ¤ë¡£
X ¥µ¡¼¥Ð¤Ø¤ÎÀܳ¤ò»ØÄꤹ¤ë¡£
¥â¡¼¥É¤ò»ØÄꤹ¤ë¡£ QueuedAlready, QueuedAfterFlush, QueuedAfterReading ¤Î¤¤¤º¤ì¤«¤òÅϤ¹¤³¤È¤¬¤Ç¤­¤ë¡£

ÀâÌÀ

´Ø¿ô XFlush ¤Ï½ÐÎϥХåե¡¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£ ½ÐÎϥХåե¡¤Ï XPending, XNextEvent, XWindowEvent ¤ò¸Æ¤Ö¤³¤È¤Ë¤è¤êɬÍפ˱þ¤¸¤Æ¼«Æ°Åª¤Ë¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¤Î¤Ç¡¢¤Û¤È¤ó¤É¤Î ¥¯¥é¥¤¥¢¥ó¥È¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¤³¤Î´Ø¿ô¤ò»È¤¦É¬ÍפϤʤ¤¡£ ¥µ¡¼¥Ð¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¥¤¥Ù¥ó¥È¤Ï¡¢¥é¥¤¥Ö¥é¥ê¤Î¥¤¥Ù¥ó¥È¥­¥å¡¼¤ËÆþ¤ì¤é ¤ì¤ë¤³¤È¤â¤¢¤ë¡£

´Ø¿ô XSync ¤Ï½ÐÎϥХåե¡¤ò¥Õ¥é¥Ã¥·¥å¤·¡¢¤½¤Î¸å X ¥µ¡¼¥Ð¤¬Á´¤Æ¤Î¥¤¥Ù¥ó¥È¤ò¼õ¤±¼è¤Ã ¤Æ½èÍý¤¹¤ë¤Þ¤ÇÂԤġ£ À¸À®¤µ¤ì¤¿Á´¤Æ¤Î¥¨¥é¡¼¤Ï¡¢¥¨¥é¡¼¥Ï¥ó¥É¥é¤ò»È¤Ã¤Æ½èÍý¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ Xlib ¤¬¼õ¤±¼è¤ë¤½¤ì¤¾¤ì¤Î¥×¥í¥È¥³¥ë¥¨¥é¡¼¤ËÂФ·¤Æ¡¢ XSync ¤Ï¥¯¥é¥¤¥¢¥ó¥È¤Î¥¨¥é¡¼½èÍý¥ë¡¼¥Á¥ó¤ò¸Æ¤Ó½Ð¤¹(11.8.2ÀỲ¾È)¡£ ¥µ¡¼¥Ð¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿Á´¤Æ¤Î¥¤¥Ù¥ó¥È¤Ï¥é¥¤¥Ö¥é¥ê¤Î¥¤¥Ù¥ó¥È¥­¥å¡¼¤ËÆþ ¤ì¤é¤ì¤ë¡£

ºÇ¸å¤Ë¤Ê¤ë¤¬¡¢ False ¤òÅϤ·¤¿¾ì¹ç¡¢ XSync ¤Ï¥­¥å¡¼Æâ¤Î¥¤¥Ù¥ó¥È¤òÇË´þ¤·¤Ê¤¤¡£ True ¤òÅϤ·¤¿¾ì¹ç¤Ë¤Ï¡¢ XSync ¤Ï¥­¥å¡¼Æâ¤Î¥¤¥Ù¥ó¥È¤òÁ´¤ÆÇË´þ¤¹¤ë¡£ ¤³¤ì¤Ë¤Ï XSync ¤¬¸Æ¤Ð¤ì¤ëÁ°¤Ë¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤¿¤â¤Î¤â´Þ¤Þ¤ì¤ë¡£ ¥¯¥é¥¤¥¢¥ó¥È¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬ XSync ¤ò¸Æ¤ÖɬÍפ¬¤¢¤ë¤³¤È¤Ï¤Û¤È¤ó¤É¤Ê¤¤¡£

mode ¤¬ QueuedAlready ¤Î¾ì¹ç¡¢ XEventsQueued ¤Ï´û¤Ë¥¤¥Ù¥ó¥È¥­¥å¡¼Æâ¤Ë¤¢¤ë(¤½¤·¤Æ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò¼Â¹Ô¤·¤Æ¤¤¤Ê¤¤) ¥¤¥Ù¥ó¥È¤Î¿ô¤òÊÖ¤¹¡£ mode ¤¬ QueuedAfterFlush ¤Î¾ì¹ç¤Ë¤Ï¡¢ XEventsQueued ¤Ï´û¤Ë¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¥¤¥Ù¥ó¥È¤Î¿ô¤¬ 0 ¸Ä¤Ç¤Ê¤±¤ì¤Ð¡¢¤½¤Î¿ô¤òÊÖ¤¹¡£ ¥­¥å¡¼¤Ë¥¤¥Ù¥ó¥È¤¬Æþ¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ XEventsQueued ¤Ï½ÐÎϥХåե¡¤ò¥Õ¥é¥Ã¥·¥å¤·¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÀܳ¤ÎÃ椫¤é¤µ¤é¤Ë ¥¤¥Ù¥ó¥È¤òÆɤ߽Ф½¤¦¤È»î¤ß¡¢Æɤ߽Ф»¤¿¿ô¤òÊÖ¤¹¡£ mode ¤¬ QueuedAfterReading ¤Î¾ì¹ç¡¢ XEventsQueued ¤Ï¡¢´û¤Ë¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¥¤¥Ù¥ó¥È¤Î¿ô¤¬ 0 ¸Ä¤Ç¤Ê¤±¤ì¤Ð¤½¤Î¿ô¤òÊÖ¤¹¡£ ¥­¥å¡¼¤Ë¥¤¥Ù¥ó¥È¤¬Æþ¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ XEventsQueued ¤Ï½ÐÎϥХåե¡¤ò¥Õ¥é¥Ã¥·¥å¤»¤º¤Ë¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÀܳ¤«¤é ¤µ¤é¤Ë¥¤¥Ù¥ó¥È¤òÆɤ߽Ф½¤¦¤È»î¤ß¡¢Æɤ߽Ф¹¤³¤È¤¬¤Ç¤­¤¿¿ô¤òÊÖ¤¹¡£

XEventsQueued ¤Ï¡¢´û¤Ë¥­¥å¡¼Æâ¤Ë¥¤¥Ù¥ó¥È¤¬¤¢¤ì¤Ð¡¢Æþ½ÐÎϤʤ·¤Ç¨ºÂ¤ËÉüµ¢¤¹¤ë¡£ mode ¤¬ QueuedAfterFlush ¤Ç¤¢¤ë XEventsQueued ¤ÎÆ°ºî¤Ï XPending ¤ÈƱ°ì¤Ç¤¢¤ë¡£ mode ¤¬ QueuedAlready ¤Ç¤¢¤ë XEventsQueued ¤Ï´Ø¿ô XQLength ¤ÈƱ°ì¤Ç¤¢¤ë¡£

´Ø¿ô XPending ¤Ï X ¥µ¡¼¥Ð¤¬¼õ¤±¼è¤Ã¤Æ¤¤¤ë¤¬¡¢¥¤¥Ù¥ó¥È¥­¥å¡¼¤«¤é¤Ïºï½ü¤µ¤ì¤Æ¤¤¤Ê¤¤ ¥¤¥Ù¥ó¥È¤Î¿ô¤òÊÖ¤¹¡£ XPending ¤Ï mode QueuedAfterFlush ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë XEventsQueued ¤ÈƱ¤¸¤Ç¤¢¤ë¡£

´ØÏ¢¹àÌÜ

AllPlanes(3X11), XIfEvent(3X11), XNextEvent(3X11), XPutBackEvent(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11