< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 578,588 **** * @param nextTaskTime -1, if there are no tasks; next time when * timeout task needs to be run, in millis(of currentTimeMillis) */ static uint32_t get_poll_timeout(jlong nextTaskTime) { ! uint32_t ret_timeout; uint32_t timeout; uint32_t taskTimeout; uint32_t flushTimeout; jlong curTime = awtJNI_TimeMillis(); --- 578,588 ---- * @param nextTaskTime -1, if there are no tasks; next time when * timeout task needs to be run, in millis(of currentTimeMillis) */ static uint32_t get_poll_timeout(jlong nextTaskTime) { ! uint32_t ret_timeout = 0; uint32_t timeout; uint32_t taskTimeout; uint32_t flushTimeout; jlong curTime = awtJNI_TimeMillis();
*** 758,768 **** * Wakes-up poll() in performPoll */ static void wakeUp() { static char wakeUp_char = 'p'; if (!isMainThread() && awt_pipe_inited) { ! write ( AWT_WRITEPIPE, &wakeUp_char, 1 ); } } /* ========================== End poll section ================================= */ --- 758,768 ---- * Wakes-up poll() in performPoll */ static void wakeUp() { static char wakeUp_char = 'p'; if (!isMainThread() && awt_pipe_inited) { ! size_t bytesWritten = write ( AWT_WRITEPIPE, &wakeUp_char, 1 ); //bytesWritten is unused } } /* ========================== End poll section ================================= */
< prev index next >