- Timestamp:
- 02/08/09 17:55:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chess/src/chess/remote/impl/BTNode.java
r29 r30 38 38 39 39 /** ìîíèòîð îæèäàíèÿ îòêðûòèÿ ñîåäèíåíèÿ */ 40 private final Object connectLock = new Object();40 // private final Object connectLock = new Object(); 41 41 42 42 private final Object queueOverloadedLock = new Object(); … … 103 103 public void send( final IDatagram data ) { 104 104 checkPumpActive(); 105 synchronized( connectLock ) {106 while( !isConnected() && !isClosed() ) {107 try {108 connectLock.wait( 250 );109 } catch( InterruptedException e ) {110 e.printStackTrace();111 }112 }113 }105 // synchronized( connectLock ) { 106 // while( !isConnected() && !isClosed() ) { 107 // try { 108 // connectLock.wait( 250 ); 109 // } catch( InterruptedException e ) { 110 // e.printStackTrace(); 111 // } 112 // } 113 // } 114 114 //áëîêèðóåì this ÷òîáû íàñ íå çàêðûëè íåâîâðåìÿ 115 115 while( true ) { … … 152 152 listener.connected(); 153 153 } 154 synchronized( connectLock ) {155 connectLock.notifyAll();156 }154 // synchronized( connectLock ) { 155 // connectLock.notifyAll(); 156 // } 157 157 final GenericDatagram data = new GenericDatagram(); 158 158 while( !isClosed() ) { … … 201 201 } 202 202 203 public synchronizedvoid close() {203 public void close() { 204 204 if( isClosed() ) { 205 205 return;
Note: See TracChangeset
for help on using the changeset viewer.