Code example for HashMap

Methods: clear

0
     * @return True if the server was stopped, false if an error occurred or if the 
     *         server wasn't started. 
     * 
     * @see #start() 
     * @see #isRunning() 
     * @see WindowManagerService#stopViewServer() 
     */ 
    public boolean stop() { 
        if (mThread != null) {
            mThread.interrupt();
            if (mThreadPool != null) {
                try { 
                    mThreadPool.shutdownNow();
                } catch (SecurityException e) {
                    Log.w(LOG_TAG, "Could not stop all view server threads");
                } 
            } 
 
            mThreadPool = null;
            mThread = null;