← Back
Editing: _threadworker.cpython-38.pyc
U W[0 � @ sv d Z ddlmZmZmZ ddlmZ ddlmZ ddl m Z e� Zee�G dd� de��Z ee�G d d � d e��ZdS )zE Implementation of an L{IWorker} based on native threads and queues. � )�absolute_import�division�print_function)�implementer� )�IExclusiveWorker)�Quitc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �ThreadWorkerz� An L{IExclusiveWorker} implemented based on a single thread and a queue. This worker ensures exclusivity (i.e. it is an L{IExclusiveWorker} and not an L{IWorker}) by performing all of the work passed to C{do} on the I{same} thread. c s&