Ahenk/opt/ahenk/base/plugin/PluginQueue.py
2016-03-02 15:45:36 +02:00

10 lines
279 B
Python

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
from queue import Queue
class PluginQueue(Queue):
def __contains__(self, item):
with self.mutex:
return item in self.queue