You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
(2) |
2
(1) |
3
|
4
|
5
|
|
6
(1) |
7
|
8
(1) |
9
|
10
|
11
|
12
|
|
13
(3) |
14
|
15
|
16
|
17
|
18
(1) |
19
(4) |
|
20
(3) |
21
(1) |
22
(1) |
23
|
24
|
25
|
26
(1) |
|
27
(5) |
28
|
29
|
30
(1) |
31
(5) |
|
|
|
From: <eli...@us...> - 2007-05-30 20:33:48
|
Revision: 2833
http://svn.sourceforge.net/java-game-lib/?rev=2833&view=rev
Author: elias_naur
Date: 2007-05-30 13:33:40 -0700 (Wed, 30 May 2007)
Log Message:
-----------
Removed unnecessary (and deadlock prone) synchronized modifiers from methods in Keyboard and Mouse
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java
trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
Modified: trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java 2007-05-27 15:32:25 UTC (rev 2832)
+++ trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java 2007-05-30 20:33:40 UTC (rev 2833)
@@ -303,7 +303,7 @@
*
* @throws LWJGLException if the keyboard could not be created for any reason
*/
- public static synchronized void create() throws LWJGLException {
+ public static void create() throws LWJGLException {
synchronized (OpenGLPackageAccess.global_lock) {
if (!Display.isCreated()) throw new IllegalStateException("Display must be created.");
@@ -321,7 +321,7 @@
/**
* @return true if the keyboard has been created
*/
- public static synchronized boolean isCreated() {
+ public static boolean isCreated() {
synchronized (OpenGLPackageAccess.global_lock) {
return created;
}
@@ -330,7 +330,7 @@
/**
* "Destroy" the keyboard
*/
- public static synchronized void destroy() {
+ public static void destroy() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created)
return;
@@ -358,7 +358,7 @@
* @see org.lwjgl.input.Keyboard#getEventKeyState()
* @see org.lwjgl.input.Keyboard#getEventCharacter()
*/
- public static synchronized void poll() {
+ public static void poll() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created)
throw new IllegalStateException("Keyboard must be created before you can poll the device");
@@ -378,7 +378,7 @@
* @param key Keycode to check
* @return true if the key is down according to the last poll()
*/
- public static synchronized boolean isKeyDown(int key) {
+ public static boolean isKeyDown(int key) {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created)
throw new IllegalStateException("Keyboard must be created before you can query key state");
@@ -423,7 +423,7 @@
* Gets the number of keyboard events waiting after doing a buffer enabled poll().
* @return the number of keyboard events
*/
- public static synchronized int getNumKeyboardEvents() {
+ public static int getNumKeyboardEvents() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created)
throw new IllegalStateException("Keyboard must be created before you can read events");
@@ -447,7 +447,7 @@
* @see org.lwjgl.input.Keyboard#getEventCharacter()
* @return true if a keyboard event was read, false otherwise
*/
- public static synchronized boolean next() {
+ public static boolean next() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created)
throw new IllegalStateException("Keyboard must be created before you can read events");
@@ -467,8 +467,10 @@
*
* @see org.lwjgl.input.Keyboard#getEventKey()
*/
- public static synchronized void enableRepeatEvents(boolean enable) {
- repeat_enabled = enable;
+ public static void enableRepeatEvents(boolean enable) {
+ synchronized (OpenGLPackageAccess.global_lock) {
+ repeat_enabled = enable;
+ }
}
/**
@@ -477,8 +479,10 @@
* @return true is repeat events are reported, false if not.
* @see org.lwjgl.input.Keyboard#getEventKey()
*/
- public static synchronized boolean areRepeatEventsEnabled() {
- return repeat_enabled;
+ public static boolean areRepeatEventsEnabled() {
+ synchronized (OpenGLPackageAccess.global_lock) {
+ return repeat_enabled;
+ }
}
private static boolean readNext(KeyEvent event) {
@@ -496,16 +500,14 @@
/**
* @return Number of keys on this keyboard
*/
- public static synchronized int getKeyCount() {
- synchronized (OpenGLPackageAccess.global_lock) {
- return keyCount;
- }
+ public static int getKeyCount() {
+ return keyCount;
}
/**
* @return The character from the current event
*/
- public static synchronized char getEventCharacter() {
+ public static char getEventCharacter() {
synchronized (OpenGLPackageAccess.global_lock) {
return (char)current_event.character;
}
@@ -518,7 +520,7 @@
*
* @return The key from the current event
*/
- public static synchronized int getEventKey() {
+ public static int getEventKey() {
synchronized (OpenGLPackageAccess.global_lock) {
return current_event.key;
}
@@ -530,7 +532,7 @@
*
* @return True if key was down, or false if released
*/
- public static synchronized boolean getEventKeyState() {
+ public static boolean getEventKeyState() {
synchronized (OpenGLPackageAccess.global_lock) {
return current_event.state;
}
@@ -543,7 +545,7 @@
* origin.
* @return The time in nanoseconds of the current event
*/
- public static synchronized long getEventNanoseconds() {
+ public static long getEventNanoseconds() {
synchronized (OpenGLPackageAccess.global_lock) {
return current_event.nanos;
}
@@ -554,7 +556,7 @@
* @return true if the current event is a repeat event, false if
* the current event is not a repeat even or if repeat events are disabled.
*/
- public static synchronized boolean isRepeatEvent() {
+ public static boolean isRepeatEvent() {
synchronized (OpenGLPackageAccess.global_lock) {
return current_event.repeat;
}
Modified: trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-05-27 15:32:25 UTC (rev 2832)
+++ trunk/LWJGL/src/java/org/lwjgl/input/Mouse.java 2007-05-30 20:33:40 UTC (rev 2833)
@@ -146,7 +146,7 @@
*
* @return the currently bound native cursor, if any.
*/
- public static synchronized Cursor getNativeCursor() {
+ public static Cursor getNativeCursor() {
synchronized (OpenGLPackageAccess.global_lock) {
return currentCursor;
}
@@ -163,7 +163,7 @@
* @return The previous Cursor object set, or null.
* @throws LWJGLException if the cursor could not be set for any reason
*/
- public static synchronized Cursor setNativeCursor(Cursor cursor) throws LWJGLException {
+ public static Cursor setNativeCursor(Cursor cursor) throws LWJGLException {
synchronized (OpenGLPackageAccess.global_lock) {
if ((Cursor.getCapabilities() & Cursor.CURSOR_ONE_BIT_TRANSPARENCY) == 0)
throw new IllegalStateException("Mouse doesn't support native cursors");
@@ -190,7 +190,7 @@
* @param y The y coordinate of the new cursor position in OpenGL coordinates relative
* to the window origin.
*/
- public static synchronized void setCursorPosition(int new_x, int new_y) {
+ public static void setCursorPosition(int new_x, int new_y) {
synchronized (OpenGLPackageAccess.global_lock) {
if (!isCreated())
throw new IllegalStateException("Mouse is not created");
@@ -260,7 +260,7 @@
*
* @throws LWJGLException if the mouse could not be created for any reason
*/
- public static synchronized void create() throws LWJGLException {
+ public static void create() throws LWJGLException {
synchronized (OpenGLPackageAccess.global_lock) {
if (!Display.isCreated()) throw new IllegalStateException("Display must be created.");
@@ -271,7 +271,7 @@
/**
* @return true if the mouse has been created
*/
- public static synchronized boolean isCreated() {
+ public static boolean isCreated() {
synchronized (OpenGLPackageAccess.global_lock) {
return created;
}
@@ -280,7 +280,7 @@
/**
* "Destroy" the mouse.
*/
- public static synchronized void destroy() {
+ public static void destroy() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created) return;
created = false;
@@ -312,7 +312,7 @@
* @see org.lwjgl.input.Mouse#getDY()
* @see org.lwjgl.input.Mouse#getDWheel()
*/
- public static synchronized void poll() {
+ public static void poll() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created) throw new IllegalStateException("Mouse must be created before you can poll it");
implementation.pollMouse(coord_buffer, buttons);
@@ -353,7 +353,7 @@
* @param button The index of the button you wish to test (0..getButtonCount-1)
* @return true if the specified button is down
*/
- public static synchronized boolean isButtonDown(int button) {
+ public static boolean isButtonDown(int button) {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created) throw new IllegalStateException("Mouse must be created before you can poll the button state");
if (button >= buttonCount || button < 0)
@@ -368,7 +368,7 @@
* @param button The button
* @return a String with the button's human readable name in it or null if the button is unnamed
*/
- public static synchronized String getButtonName(int button) {
+ public static String getButtonName(int button) {
synchronized (OpenGLPackageAccess.global_lock) {
if (button >= buttonName.length || button < 0)
return null;
@@ -381,7 +381,7 @@
* Get's a button's index. If the button is unrecognised then -1 is returned.
* @param buttonName The button name
*/
- public static synchronized int getButtonIndex(String buttonName) {
+ public static int getButtonIndex(String buttonName) {
synchronized (OpenGLPackageAccess.global_lock) {
Integer ret = (Integer) buttonMap.get(buttonName);
if (ret == null)
@@ -400,7 +400,7 @@
* @see org.lwjgl.input.Mouse#getEventButtonState()
* @return true if a mouse event was read, false otherwise
*/
- public static synchronized boolean next() {
+ public static boolean next() {
synchronized (OpenGLPackageAccess.global_lock) {
if (!created) throw new IllegalStateException("Mouse must be created before you can read events");
if (readBuffer.hasRemaining()) {
@@ -432,7 +432,7 @@
/**
* @return Current events button. Returns -1 if no button state was changed
*/
- public static synchronized int getEventButton() {
+ public static int getEventButton() {
synchronized (OpenGLPackageAccess.global_lock) {
return eventButton;
}
@@ -442,7 +442,7 @@
* Get the current events button state.
* @return Current events button state.
*/
- public static synchronized boolean getEventButtonState() {
+ public static boolean getEventButtonState() {
synchronized (OpenGLPackageAccess.global_lock) {
return eventState;
}
@@ -451,7 +451,7 @@
/**
* @return Current events delta x. Only valid when the mouse is grabbed.
*/
- public static synchronized int getEventDX() {
+ public static int getEventDX() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_dx;
}
@@ -460,7 +460,7 @@
/**
* @return Current events delta y. Only valid when the mouse is grabbed.
*/
- public static synchronized int getEventDY() {
+ public static int getEventDY() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_dy;
}
@@ -469,7 +469,7 @@
/**
* @return Current events absolute x. Only valid when the mouse is not grabbed.
*/
- public static synchronized int getEventX() {
+ public static int getEventX() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_x;
}
@@ -478,7 +478,7 @@
/**
* @return Current events absolute y. Only valid when the mouse is not grabbed.
*/
- public static synchronized int getEventY() {
+ public static int getEventY() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_y;
}
@@ -487,7 +487,7 @@
/**
* @return Current events delta z
*/
- public static synchronized int getEventDWheel() {
+ public static int getEventDWheel() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_dwheel;
}
@@ -501,7 +501,7 @@
*
* @return The time in nanoseconds of the current event
*/
- public static synchronized long getEventNanoseconds() {
+ public static long getEventNanoseconds() {
synchronized (OpenGLPackageAccess.global_lock) {
return event_nanos;
}
@@ -513,7 +513,7 @@
*
* @return Absolute x axis position of mouse
*/
- public static synchronized int getX() {
+ public static int getX() {
synchronized (OpenGLPackageAccess.global_lock) {
return x;
}
@@ -525,7 +525,7 @@
*
* @return Absolute y axis position of mouse
*/
- public static synchronized int getY() {
+ public static int getY() {
synchronized (OpenGLPackageAccess.global_lock) {
return y;
}
@@ -534,7 +534,7 @@
/**
* @return Movement on the x axis since last time getDX() was called. Only valid when the mouse is grabbed.
*/
- public static synchronized int getDX() {
+ public static int getDX() {
synchronized (OpenGLPackageAccess.global_lock) {
int result = dx;
dx = 0;
@@ -545,7 +545,7 @@
/**
* @return Movement on the y axis since last time getDY() was called. Only valid when the mouse is grabbed.
*/
- public static synchronized int getDY() {
+ public static int getDY() {
synchronized (OpenGLPackageAccess.global_lock) {
int result = dy;
dy = 0;
@@ -556,7 +556,7 @@
/**
* @return Movement of the wheel since last time getDWheel() was called
*/
- public static synchronized int getDWheel() {
+ public static int getDWheel() {
synchronized (OpenGLPackageAccess.global_lock) {
int result = dwheel;
dwheel = 0;
@@ -567,7 +567,7 @@
/**
* @return Number of buttons on this mouse
*/
- public static synchronized int getButtonCount() {
+ public static int getButtonCount() {
synchronized (OpenGLPackageAccess.global_lock) {
return buttonCount;
}
@@ -576,7 +576,7 @@
/**
* @return Whether or not this mouse has wheel support
*/
- public static synchronized boolean hasWheel() {
+ public static boolean hasWheel() {
synchronized (OpenGLPackageAccess.global_lock) {
return hasWheel;
}
@@ -585,7 +585,7 @@
/**
* @return whether or not the mouse has grabbed the cursor
*/
- public static synchronized boolean isGrabbed() {
+ public static boolean isGrabbed() {
synchronized (OpenGLPackageAccess.global_lock) {
return isGrabbed;
}
@@ -599,7 +599,7 @@
*
* @param grab whether the mouse should be grabbed
*/
- public static synchronized void setGrabbed(boolean grab) {
+ public static void setGrabbed(boolean grab) {
synchronized (OpenGLPackageAccess.global_lock) {
isGrabbed = grab;
if (isCreated()) {
@@ -618,7 +618,7 @@
* This method is called automatically by the window on its update, and
* shouldn't be called otherwise
*/
- public static synchronized void updateCursor() {
+ public static void updateCursor() {
synchronized (OpenGLPackageAccess.global_lock) {
if (emulateCursorAnimation && currentCursor != null && currentCursor.hasTimedOut()) {
currentCursor.nextCursor();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|