MCPcopy Create free account
hub / github.com/pybind/pybind11 / sleep

Method sleep

tests/test_iostream.cpp:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void sleep() {
67 py::gil_scoped_release gil_lock;
68 std::this_thread::sleep_for(std::chrono::milliseconds(50));
69 }
70
71 std::thread *t_{nullptr};
72 std::atomic<bool> stop_;

Callers 2

test_async_callbacksFunction · 0.80
test_threadingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected