diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-20 05:06:42 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-20 05:06:42 -0800 |
commit | 8d28579ac949ad21ef76f0c81bd43d42c925b2d5 (patch) | |
tree | 3f5b6faec72b5c4da468f3f0d4f947f24ddf579b | |
parent | ef0195dfa06bd07c2263ffbfcca2fb117f6026aa (diff) | |
download | psutil-8d28579ac949ad21ef76f0c81bd43d42c925b2d5.tar.gz |
rename function and make it private
-rw-r--r-- | psutil/arch/windows/process_handles.c | 6 | ||||
-rw-r--r-- | psutil/arch/windows/process_handles.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/psutil/arch/windows/process_handles.c b/psutil/arch/windows/process_handles.c index ad2bf238..33a9c778 100644 --- a/psutil/arch/windows/process_handles.c +++ b/psutil/arch/windows/process_handles.c @@ -178,7 +178,7 @@ psutil_get_open_files_ntqueryobject(long dwPid, HANDLE hProcess) { goto loop_cleanup; } - dwWait = psutil_NtQueryObject(); + dwWait = psutil_create_thread(); // If the call does not return, skip this handle if (dwWait != WAIT_OBJECT_0) @@ -266,8 +266,8 @@ cleanup: } -DWORD -psutil_NtQueryObject() { +static DWORD +psutil_create_thread() { DWORD dwWait = 0; if (g_hThread == NULL) diff --git a/psutil/arch/windows/process_handles.h b/psutil/arch/windows/process_handles.h index 4a022c1c..050d6ec3 100644 --- a/psutil/arch/windows/process_handles.h +++ b/psutil/arch/windows/process_handles.h @@ -105,7 +105,6 @@ VOID psutil_get_open_files_init(BOOL threaded); PyObject* psutil_get_open_files(long pid, HANDLE processHandle); PyObject* psutil_get_open_files_ntqueryobject(long dwPid, HANDLE hProcess); PyObject* psutil_get_open_files_getmappedfilename(long dwPid, HANDLE hProcess); -DWORD psutil_NtQueryObject(void); DWORD WINAPI psutil_NtQueryObjectThread(LPVOID lpvParam); #endif // __PROCESS_HANDLES_H__ |