[vlc-commits] commit: Win32: remove thread times ( =?UTF-8?Q?R=C3=A9mi=20Denis=2DCourmont=20?=)
git at videolan.org
git at videolan.org
Sat Dec 4 18:32:27 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 4 19:25:36 2010 +0200| [7b59c12c2416c3de7bc223bd73da98f20f3c843a] | committer: Rémi Denis-Courmont
Win32: remove thread times
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b59c12c2416c3de7bc223bd73da98f20f3c843a
---
src/misc/threads.c | 49 -------------------------------------------------
1 files changed, 0 insertions(+), 49 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 660f3b0..cbb61bc 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -170,56 +170,7 @@ void vlc_thread_join( vlc_object_t *p_this )
{
vlc_object_internals_t *p_priv = vlc_internals( p_this );
-#if 0 && defined( WIN32 ) && !defined( UNDER_CE )
- HANDLE hThread;
- FILETIME create_ft, exit_ft, kernel_ft, user_ft;
- int64_t real_time, kernel_time, user_time;
-
- if( ! DuplicateHandle(GetCurrentProcess(),
- p_priv->thread_id,
- GetCurrentProcess(),
- &hThread,
- 0,
- FALSE,
- DUPLICATE_SAME_ACCESS) )
- {
- p_priv->b_thread = false;
- return; /* We have a problem! */
- }
-#endif
-
vlc_join( p_priv->thread_id, NULL );
-
-#if 0 && defined( WIN32 ) && !defined( UNDER_CE )
- /* FIXME: this could work on WinCE too... except that it seems always to
- * return 0 for exit_ft and kernel_ft */
- if( GetThreadTimes( hThread, &create_ft, &exit_ft, &kernel_ft, &user_ft ) )
- {
- real_time =
- ((((int64_t)exit_ft.dwHighDateTime)<<32)| exit_ft.dwLowDateTime) -
- ((((int64_t)create_ft.dwHighDateTime)<<32)| create_ft.dwLowDateTime);
- real_time /= 10;
-
- kernel_time =
- ((((int64_t)kernel_ft.dwHighDateTime)<<32)|
- kernel_ft.dwLowDateTime) / 10;
-
- user_time =
- ((((int64_t)user_ft.dwHighDateTime)<<32)|
- user_ft.dwLowDateTime) / 10;
-
- msg_Dbg( p_this, "thread times: "
- "real %"PRId64"m%fs, kernel %"PRId64"m%fs, user %"PRId64"m%fs",
- real_time/60/1000000,
- (double)((real_time%(60*1000000))/1000000.0),
- kernel_time/60/1000000,
- (double)((kernel_time%(60*1000000))/1000000.0),
- user_time/60/1000000,
- (double)((user_time%(60*1000000))/1000000.0) );
- }
- CloseHandle( hThread );
-#endif
-
p_priv->b_thread = false;
}
More information about the vlc-commits
mailing list