mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/observation/RemoteObservationListener.java
private void stopHandlerThreads()
    {
        if (m_Running)
        {
            m_Running = false;
            final int wait = 1000;
            m_ObsHandlerThread.interrupt();
            m_ConvertObsThread.interrupt();
            try
            {
                m_ObsHandlerThread.join(wait);
            } 
            catch (final InterruptedException exception)
            {
                m_Logging.log(LogService.LOG_WARNING, exception, "Observation handler thread was "
                        + "interrupted while waiting for it to join.");
            }
            try
            {
                m_ConvertObsThread.join(wait);
            } 
            catch (final InterruptedException exception)
            {
                m_Logging.log(LogService.LOG_WARNING, exception, "Observation converter thread was interrupted while "
                        + "waiting for it to join.");
            }
        }
    }
/**
     * Method that stops and waits for the threads that handle converting and storing observations to join.
     */
Method that stops and waits for the threads that handle converting and storing observations to join.
Method that stops and waits for the threads that handle converting and storing observations to join .
private void stopHandlerThreads()
    {
        if (m_Running)
        {
            m_Running = false;
            final int wait = 1000;
            m_ObsHandlerThread.interrupt();
            m_ConvertObsThread.interrupt();
            try
            {
                m_ObsHandlerThread.join(wait);
            } 
            catch (final InterruptedException exception)
            {
                m_Logging.log(LogService.LOG_WARNING, exception, "Observation handler thread was "
                        + "interrupted while waiting for it to join.");
            }
            try
            {
                m_ConvertObsThread.join(wait);
            } 
            catch (final InterruptedException exception)
            {
                m_Logging.log(LogService.LOG_WARNING, exception, "Observation converter thread was interrupted while "
                        + "waiting for it to join.");
            }
        }
    }
private void stopHandlerThreads ( ) { if ( m_Running ) { m_Running = false ; final int wait = 1000 ; m_ObsHandlerThread . interrupt ( ) ; m_ConvertObsThread . interrupt ( ) ; try { m_ObsHandlerThread . join ( wait ) ; } catch ( final InterruptedException exception ) { m_Logging . log ( LogService . LOG_WARNING , exception , "Observation handler thread was " + "interrupted while waiting for it to join." ) ; } try { m_ConvertObsThread . join ( wait ) ; } catch ( final InterruptedException exception ) { m_Logging . log ( LogService . LOG_WARNING , exception , "Observation converter thread was interrupted while " + "waiting for it to join." ) ; } } }
Method that stops and waits for the threads that handle converting and storing observations to join.
Method that stops and waits for the threads that handle converting and storing observations to join .