MCPcopy Create free account
hub / github.com/baldurk/renderdoc / ping_remote

Function ping_remote

docs/python_api/examples/renderdoc/remote_capture.py:110–114  ·  view source on GitHub ↗
(remote, kill)

Source from the content-addressed store, hash-verified

108# Spin up a thread to keep the remote server connection alive while we make a capture,
109# as it will time out after 5 seconds of inactivity
110def ping_remote(remote, kill):
111 success = True
112 while success and not kill.is_set():
113 success = remote.Ping()
114 time.sleep(1)
115
116kill = threading.Event()
117ping_thread = threading.Thread(target=ping_remote, args=(remote,kill))

Callers

nothing calls this directly

Calls 1

PingMethod · 0.45

Tested by

no test coverage detected