MCPcopy Create free account
hub / github.com/bloomberg/pystack / sleep10

Function sleep10

tests/integration/empty_thread_extension/testext.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17PyObject*
18sleep10(PyObject*, PyObject*)
19{
20 pthread_t thread;
21 int ret = pthread_create(&thread, NULL, &sleepThread, NULL);
22 assert(0 == ret);
23
24 Py_BEGIN_ALLOW_THREADS ret = pthread_join(thread, NULL);
25 Py_END_ALLOW_THREADS
26
27 assert(0 == ret);
28 Py_RETURN_NONE;
29}
30
31static PyMethodDef methods[] = {
32 {"sleep10", sleep10, METH_NOARGS, "Sleep for 10 seconds"},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected