Release d03c7bd7995b3c967ec523eaddf376d5; BugFix for threaded queue (multiple jobs wit identical priority)

This commit is contained in:
Dirk Alders 2021-01-11 01:11:51 +01:00
부모 9fbd98f39c
커밋 c9e1e20764
3개의 변경된 파일5407개의 추가작업 그리고 5177개의 파일을 삭제

파일 보기

@ -70,6 +70,7 @@ class queue(object):
"""
class job(object):
def __init__(self, priority, callback, *args, **kwargs):
self.time = time.time()
self.priority = priority
self.callback = callback
self.args = args
@ -79,7 +80,10 @@ class queue(object):
self.callback(queue, *self.args, **self.kwargs)
def __lt__(self, other):
return self.priority < other.priority
if self.priority != other.priority:
return self.priority < other.priority
else:
return self.time < other.time
def __init__(self, expire=True):
self.__expire = expire

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다. Load Diff

Binary file not shown.