(self)
Pauses the writing of samples to the log file.
Pauses the writing of samples to the log file.
Pauses the writing of samples to the log file .
def stop_recording(self):
		
		"""Pauses the writing of samples to the log file.
		"""

		# Only pause recording if recording is currently active.
		if self._recording:
			# Signal the recording Thread to stop what it's doing.
			self._recording = False
			# Wait for a bit, to allow the emptying of the local queue.
			time.sleep(0.2)
			# Close the logfile.
			self._loglock.acquire(True)
			self._logfile.close()
			self._loglock.release()
			_message(u'debug', u'generic.EyeTracker.__init__', \
				u"Stopped recording, and closed logfile '%s'" \
				% (self._logfilename))
def stop_recording ( self ) : # Only pause recording if recording is currently active. if self . _recording : # Signal the recording Thread to stop what it's doing. self . _recording = False # Wait for a bit, to allow the emptying of the local queue. time . sleep ( 0.2 ) # Close the logfile. self . _loglock . acquire ( True ) self . _logfile . close ( ) self . _loglock . release ( ) _message ( u'debug' , u'generic.EyeTracker.__init__' , u"Stopped recording, and closed logfile '%s'" % ( self . _logfilename ) )