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

Function sleepThread

tests/integration/empty_thread_extension/testext.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <unistd.h>
7
8void*
9sleepThread(void*)
10{
11 PyGILState_STATE gilstate = PyGILState_Ensure();
12 sleep(1000);
13 PyGILState_Release(gilstate);
14 return NULL;
15}
16
17PyObject*
18sleep10(PyObject*, PyObject*)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected