From: <svn...@op...> - 2009-04-19 13:47:33
|
Author: friedrich.beckmann Date: Sun Apr 19 15:47:28 2009 New Revision: 5622 URL: http://www.opensync.org/changeset/5622 Log: windows: logfiles are not split per thread Modified: trunk/opensync/debug/opensync_trace.c Modified: trunk/opensync/debug/opensync_trace.c ============================================================================== --- trunk/opensync/debug/opensync_trace.c Sun Apr 19 15:13:10 2009 (r5621) +++ trunk/opensync/debug/opensync_trace.c Sun Apr 19 15:47:28 2009 (r5622) @@ -143,16 +143,13 @@ tabs = GPOINTER_TO_INT(g_private_get(current_tabs)); #ifdef _WIN32 - if (!thread_id) - thread_id = g_private_new (NULL); - id = GPOINTER_TO_INT(thread_id); pid = _getpid(); endline = "\r\n"; #else - id = (unsigned long int)pthread_self(); pid = getpid(); endline = "\n"; #endif + id = (unsigned long int)g_thread_self(); logfile = g_strdup_printf("%s%cThread%lu-%i.log", trace, G_DIR_SEPARATOR, id, pid); va_start(arglist, message); |