MCPcopy Create free account
hub / github.com/ceph/ceph / RadosThread

Class RadosThread

src/pybind/ceph_argparse.py:1510–1522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1508
1509
1510class RadosThread(threading.Thread):
1511 def __init__(self, func, *args, **kwargs):
1512 self.args = args
1513 self.kwargs = kwargs
1514 self.func = func
1515 self.exception = None
1516 threading.Thread.__init__(self)
1517
1518 def run(self):
1519 try:
1520 self.retval = self.func(*self.args, **self.kwargs)
1521 except Exception as e:
1522 self.exception = e
1523
1524
1525def run_in_thread(func: Callable[[Any, Any], Tuple[int, bytes, str]],

Callers 1

run_in_threadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected