Reset webcam driver.<br>
<br>
<b>This method is not thread-safe!</b>
554186
public static void resetDriver() {

		synchronized (DRIVERS_LIST) {
			DRIVERS_LIST.clear();
		}

		if (discovery != null) {
			discovery.shutdown();
			discovery = null;
		}

		driver = null;
	}
1053966
public void reset(SessionConfig config) throws IOException {
        mCamEncoder.reset(config);
        mMicEncoder.reset(config);
        mConfig = config;
        mIsRecording = false;
    }
1279496
def reset(self):
        
        # Kill old connection
        self.quit()
        # Clear proxy data
        self.driver_args['service_args'] = self.default_service_args
        # Clear headers
        self.dcap = dict(webdriver.DesiredCapabilities.PHANTOMJS)
        # Create new web driver
        self._create_session()
837572
protected static void store(Webcam[] webcams) {
		if (HANDLER.get() == null) {
			HANDLER.set(new WebcamDeallocator(webcams));
		} else {
			throw new IllegalStateException("Deallocator is already set!");
		}
	}
1303340
protected void reset()
    {
        this.active = false;
        synchronized (this.cachedChannelsNonTransactional)
        {
            for (ChannelProxy channel : this.cachedChannelsNonTransactional)
            {
                try
                {
                    channel.getTargetChannel().close();
                }
                catch (Throwable ex)
                {
                    this.logger.trace("Could not close cached Rabbit Channel", ex);
                }
            }
            this.cachedChannelsNonTransactional.clear();
        }
        synchronized (this.cachedChannelsTransactional)
        {
            for (ChannelProxy channel : this.cachedChannelsTransactional)
            {
                try
                {
                    channel.getTargetChannel().close();
                }
                catch (Throwable ex)
                {
                    this.logger.trace("Could not close cached Rabbit Channel", ex);
                }
            }
            this.cachedChannelsTransactional.clear();
        }
        this.active = true;
    }
307621
public void reset() {
		for (int i = 0; i < 4; i++) {
			ppCorner.get(i).set(0,0);
			ppDown.get(i).set(0,0);
			ppRight.get(i).set(0,0);
		}
		this.threshCorner = 0;
		this.threshDown = 0;
		this.threshRight = 0;
		version = -1;
		error = L;
		mask = QrCodeMaskPattern.M111;
		alignment.reset();
		mode = Mode.UNKNOWN;
		failureCause = Failure.NONE;
		rawbits = null;
		corrected = null;
		message = null;
	}
802436
public void stop() {

		// return if not running

		if (!running.compareAndSet(true, false)) {
			return;
		}

		try {
			runner.join();
		} catch (InterruptedException e) {
			throw new WebcamException("Joint interrupted");
		}

		LOG.debug("Discovery service has been stopped");

		runner = null;
	}
1083190
public void reset() {
		nextWindow = null;
		watermark = Long.MIN_VALUE;
		triggerWindowStartIndex = 0;
		emptyWindowTriggered = true;
		resetBuffer();
	}
1058035
synchronized void reset() {

        schemaMap.clear();
        sqlLookup.clear();
        csidMap.clear();
        sessionUseMap.clear();
        useMap.clear();

        next_cs_id = 0;
    }
1334458
void reset(Cursor cursor)
    {
        super.reset(cursor);
        GVRSceneObject assetSceneObject = sceneObjectArray.get(cursor.getId());
        assetSceneObject.setEnable(false);
    }
1335139
public void stop() {
		thread.requestStop = true;
		long start = System.currentTimeMillis()+timeout;
		while( start > System.currentTimeMillis() && thread.running )
			Thread.yield();

		device.stopDepth();
		device.stopVideo();
		device.close();
	}
213366
public function reset()
	{
		parent::reset();
		$this->targetWidth = null;
		$this->targetHeight = null;
		$this->cropMode = false;
	}
389668
public static function reset()
    {
        self::$_is_desktop_browser = null;
        self::$_is_mobile_browser = null;
        self::$_is_smarttv = null;
        self::$_is_robot = null;
    }
1265611
protected static void shutdown() {

		// stop discovery service
		WebcamDiscoveryService discovery = getDiscoveryServiceRef();
		if (discovery != null) {
			discovery.stop();
		}

		// stop processor
		WebcamProcessor.getInstance().shutdown();
	}
734783
public void resetThreadContextLoader() {
        if (LoaderUtils.isContextLoaderAvailable() && isContextLoaderSaved) {
            LoaderUtils.setContextClassLoader(savedContextLoader);
            savedContextLoader = null;
            isContextLoaderSaved = false;
        }
    }
439721
public void reset() throws InvalidOperationException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "reset");

    InvalidOperationException e = new InvalidOperationException(
      nls.getFormattedMessage(
        "OPERATION_IS_INVALID_ERROR_CWSIP0121",
        new Object[] { getName(), getBus() },
      null));

    SibTr.exception(tc, e);
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())    
      SibTr.exit(tc, "reset", e);
      
    throw e;    
  }
963702
def reset():
    
    shutil.rmtree(session['img_input_dir'])
    shutil.rmtree(session['img_output_dir'])
    session.clear()
    return jsonify(ok='true')