// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 
// Source File Name:   DBAccess.java
// Class Version:      45.3

package oracle.jdbc.dbaccess;

import oracle.jdbc.OracleConnection;

// Referenced classes of package oracle.jdbc.dbaccess:
//            pingDatabaseThread, semaphore

// flag ACC_SUPER is set
class timeOutThread extends Thread
{
    // Constants:          47
    // Interfaces:         0
    // Fields:             2
    // Methods:            2
    // Class Attributes:   1


    semaphore my_s;
    int my_timeOut;

    // Decompiling method: <init>  Signature: (Loracle/jdbc/dbaccess/semaphore;I)V
    // Max stack: 2, #locals: 3, #params: 3
    // Code length: 25 bytes, Code offset: 589
    // Line Number Table found: 6 entries
    // Parameter  0 added: Name this Type Loracle/jdbc/dbaccess/timeOutThread; At 0 25 Range 0 24 Init 0 fixed
    // Parameter  1 added: Name semaphore1 Type Loracle/jdbc/dbaccess/semaphore; At 0 25 Range 0 24 Init 0
    // Parameter  2 added: Name i Type I At 0 25 Range 0 24 Init 0
    // RetValue   3 added: Name <returnValue> Type V At 0 25 Range 0 24 Init 0 fixed
    public timeOutThread(semaphore semaphore1, int i)
    {
        super();
        my_s = null;
        my_timeOut = 0;
        my_s = semaphore1;
        my_timeOut = i;
        return;
    }

    // Decompiling method: run  Signature: ()V
    // Max stack: 2, #locals: 2, #params: 1
    // Code length: 62 bytes, Code offset: 672
    // Exception table: 2 entries
    //           start  0 end 8 handler 11 type InterruptedException
    //           start  19 end 53 handler 58 type any
    // Line Number Table found: 11 entries
    // Parameter  0 added: Name this Type Loracle/jdbc/dbaccess/timeOutThread; At 0 62 Range 0 61 Init 0 fixed
    // RetValue   2 added: Name <returnValue> Type V At 0 62 Range 0 61 Init 0 fixed
    // LocalVar   1 added: Name semaphore1 Type Loracle/jdbc/dbaccess/semaphore; At 16 43 Range 16 58 Init 16
    public void run()
    {
        try
        {
            Thread.sleep(my_timeOut);
        }
        catch(InterruptedException _ex) { }
        synchronized(my_s)
        {
            if(!my_s.posted)
            {
                my_s.returnValue = -3;
                my_s.posted = true;
                my_s.notify();
            }
        }
        return;
    }
}
