MCPcopy Create free account
hub / github.com/RichardErkhov/FastFaceSwap / ThreadWithReturnValue

Class ThreadWithReturnValue

utils.py:210–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 return frame
209 return None
210class ThreadWithReturnValue(Thread):
211 def __init__(self, group=None, target=None, name=None,
212 args=(), kwargs={}, Verbose=None):
213 Thread.__init__(self, group, target, name, args, kwargs)
214 self._return = None
215 def run(self):
216 if self._target is not None:
217 self._return = self._target(*self._args, **self._kwargs)
218 def join(self, *args):
219 Thread.join(self, *args)
220 return self._return
221
222class VideoCaptureThread:
223 def __init__(self, video_path, buffer_size):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected