Code example for AtomicBoolean

Methods: compareAndSet

0
        } 
    } 
 
 
    public void stopProb() { 
        if (this.isProbeStarted.compareAndSet(true, false)) {
            this.doStopProb();
            this.logger.info("ֹͣ̽²â.");
        } 
        else { 
            this.logger.info("ûÓÐÆô¶¯,²»±ØÍ£Ö¹");
        } 
    } 
 
 
    protected static void cancelFutures(List<ScheduledFuture<?>> futures) {
        if (futures == null) {
            return; 
        } 
        for (ScheduledFuture<?> future : futures) {
            if (future != null) {