Ahenk/opt/ahenk/base/plugin/PluginQueue.py

12 lines
280 B
Python
Raw Normal View History

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