Fixed for stricter argument matching rules
This commit is contained in:
parent
1d28e1707a
commit
3ac5b00d40
|
@ -46,9 +46,8 @@ class WorkQ:
|
|||
self.work = []
|
||||
self.busy = 0
|
||||
|
||||
def addwork(self, job):
|
||||
if not job:
|
||||
raise TypeError, 'cannot add null job'
|
||||
def addwork(self, func, args):
|
||||
job = (func, args)
|
||||
self.mutex.acquire()
|
||||
self.work.append(job)
|
||||
self.mutex.release()
|
||||
|
|
Loading…
Reference in New Issue