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 int ret = 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
|