관리-도구
편집 파일: worker.cpython-37.pyc
B T a+ � @ s� d dl Z d dlZd dlmZmZ d dlmZ d dlmZmZ d dl m Z d dlmZ d dl mZ er�d dlmZ d d lmZ d d lmZ e� ZG dd� de�ZdS ) � N)�sleep�time)�check_thread_support)�Queue�Full)�logger)�DEFAULT_QUEUE_SIZE)�MYPY)�Any)�Optional)�Callablec @ sf e Zd Zefdd�Zedd� �Zdd� Zdd� Zd d � Z dd� Z ddd�Zdd� Zdd� Z dd� Zd S )�BackgroundWorkerc C s* t � t|�| _t�� | _d | _d | _d S )N)r r �_queue� threading�Lock�_lock�_thread�_thread_for_pid)�selfZ queue_size� r �B/opt/alt/python37/lib/python3.7/site-packages/sentry_sdk/worker.py�__init__ s zBackgroundWorker.__init__c C s&