Kaydet (Commit) 387e1ba5 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS jl18 (1.2.8); FILE MERGED

2005/03/18 09:54:13 jl 1.2.8.1: #45371# replaced CallWatchThread by new com.sun.star.comp.bean.CallWatchThreadImplemenation
üst bd0a40c3
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: LocalOfficeWindow.java,v $ * $RCSfile: LocalOfficeWindow.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: mi $ $Date: 2004-10-14 10:37:13 $ * last change: $Author: vg $ $Date: 2005-03-23 08:58:58 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -297,49 +297,4 @@ public class LocalOfficeWindow ...@@ -297,49 +297,4 @@ public class LocalOfficeWindow
*/ */
private native int getNativeWindowSystemType(); private native int getNativeWindowSystemType();
//---------------------------------------------------------------------------
/** Helper class to watch calls into OOo with a timeout.
*/
class CallWatchThread extends Thread
{
Thread aWatchedThread;
long nTimeout;
CallWatchThread( long nTimeout )
{
this.aWatchedThread = Thread.currentThread();
this.nTimeout = nTimeout;
start();
}
void cancel()
throws java.lang.InterruptedException
{
Thread aThread = aWatchedThread;
aWatchedThread = null;
stop();
if ( aThread.interrupted() )
throw new InterruptedException();
}
public void run()
{
while ( aWatchedThread != null )
{
try { sleep( nTimeout ); }
catch ( java.lang.InterruptedException aExc )
{}
//synchronized
{
if ( aWatchedThread != null )
{
aWatchedThread.interrupt();
}
}
}
}
};
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment