Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for removeShutdownHook (0.75 sec)

  1. subprojects/core/src/main/java/org/gradle/process/internal/shutdown/ShutdownHooks.java

            Runtime.getRuntime().addShutdownHook(thread);
        }
    
        public static void removeShutdownHook(Runnable shutdownHook) {
            try {
                Thread thread = HOOKS.remove(shutdownHook);
                if (thread != null) {
                    Runtime.getRuntime().removeShutdownHook(thread);
                }
            } catch (IllegalStateException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 12 05:56:18 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. maven-jline/src/main/java/org/apache/maven/jline/MessageUtils.java

            }
        }
    
        public static void systemUninstall() {
            doSystemUninstall();
            if (shutdownHook != null) {
                try {
                    Runtime.getRuntime().removeShutdownHook(shutdownHook);
                } catch (IllegalStateException var3) {
                    // ignore
                }
            }
        }
    
        private static void doSystemUninstall() {
            try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 13:48:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/context/AbstractCIFSContext.java

         * 
         *
         * @see jcifs.CIFSContext#close()
         */
        @Override
        public boolean close () throws CIFSException {
            if ( !this.closed ) {
                Runtime.getRuntime().removeShutdownHook(this);
            }
            return false;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Thread#run()
         */
        @Override
        public void run () {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 3.7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

            } finally {
                lock.unlock();
            }
        }
    
        private void setEndStateInfo(ExecHandleState newState, int exitValue, Throwable failureCause) {
            ShutdownHooks.removeShutdownHook(shutdownHookAction);
            buildCancellationToken.removeCallback(shutdownHookAction);
            ExecHandleState currentState;
            lock.lock();
            try {
                currentState = this.state;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top