< prev index next >

src/java.desktop/unix/native/libawt_xawt/xawt/XToolkit.c

Print this page




 730             PRINT("f1\n");
 731             AWT_LOCK();
 732             XFlush(awt_display);
 733             awt_last_flush_time = curTime;
 734             AWT_NOFLUSH_UNLOCK();
 735         } else {
 736             awt_next_flush_time = next_flush_time;
 737             PRINT("f2\n");
 738             wakeUp();
 739         }
 740     }
 741 }
 742 
 743 
 744 /**
 745  * Wakes-up poll() in performPoll
 746  */
 747 static void wakeUp() {
 748     static char wakeUp_char = 'p';
 749     if (!isMainThread() && awt_pipe_inited) {
 750         write ( AWT_WRITEPIPE, &wakeUp_char, 1 );

 751     }
 752 }
 753 
 754 
 755 /* ========================== End poll section ================================= */
 756 
 757 /*
 758  * Class:     java_awt_KeyboardFocusManager
 759  * Method:    initIDs
 760  * Signature: ()V
 761  */
 762 JNIEXPORT void JNICALL
 763 Java_java_awt_KeyboardFocusManager_initIDs
 764     (JNIEnv *env, jclass cls)
 765 {
 766 }
 767 
 768 /*
 769  * Class:     sun_awt_X11_XToolkit
 770  * Method:    getEnv




 730             PRINT("f1\n");
 731             AWT_LOCK();
 732             XFlush(awt_display);
 733             awt_last_flush_time = curTime;
 734             AWT_NOFLUSH_UNLOCK();
 735         } else {
 736             awt_next_flush_time = next_flush_time;
 737             PRINT("f2\n");
 738             wakeUp();
 739         }
 740     }
 741 }
 742 
 743 
 744 /**
 745  * Wakes-up poll() in performPoll
 746  */
 747 static void wakeUp() {
 748     static char wakeUp_char = 'p';
 749     if (!isMainThread() && awt_pipe_inited) {
 750         ssize_t res = write ( AWT_WRITEPIPE, &wakeUp_char, 1 );
 751         (void)res;
 752     }
 753 }
 754 
 755 
 756 /* ========================== End poll section ================================= */
 757 
 758 /*
 759  * Class:     java_awt_KeyboardFocusManager
 760  * Method:    initIDs
 761  * Signature: ()V
 762  */
 763 JNIEXPORT void JNICALL
 764 Java_java_awt_KeyboardFocusManager_initIDs
 765     (JNIEnv *env, jclass cls)
 766 {
 767 }
 768 
 769 /*
 770  * Class:     sun_awt_X11_XToolkit
 771  * Method:    getEnv


< prev index next >