Permalink
Browse files

remove debug code which was used to analyze the crashes

  • Loading branch information...
1 parent ca09e4d commit 2740214d883d95cf919dc37d8cb45cfb1c2e91a2 @GerHobbelt committed Oct 14, 2012
Showing with 5 additions and 18 deletions.
  1. +5 −9 ptw32_new.c
  2. +0 −9 ptw32_reuse.c
View
@@ -9,25 +9,25 @@
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
* Copyright(C) 1999,2005 Pthreads-win32 contributors
- *
+ *
* Contact Email: rpj@callisto.canberra.edu.au
- *
+ *
* The current list of contributors is contained
* in the file CONTRIBUTORS included with the source
* code distribution. The list can also be seen at the
* following World Wide Web location:
* http://sources.redhat.com/pthreads-win32/contributors.html
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library in the file COPYING.LIB;
* if not, write to the Free Software Foundation, Inc.,
@@ -85,10 +85,6 @@ ptw32_new (void)
if (tp->cancelEvent == NULL)
{
- int err = GetLastError();
- char buf[80];
- sprintf(buf, "error = %08x\n", err);
-
ptw32_threadReusePush (tp->ptHandle);
return nil;
}
View
@@ -112,21 +112,12 @@ ptw32_threadReusePop (void)
void
ptw32_threadReusePush (pthread_t thread)
{
-pthread_t thread_clone = thread;
-pthread_t thread_clone2;
-
ptw32_thread_t * tp = (ptw32_thread_t *) thread.p;
pthread_t t;
ptw32_mcs_local_node_t node;
- thread_clone2 = tp->ptHandle;
-
ptw32_mcs_lock_acquire(&ptw32_thread_reuse_lock, &node);
- if (!tp && thread_clone.p == thread_clone2.p)
- {
- t.p = 0;
- }
t = tp->ptHandle;
memset(tp, 0, sizeof(ptw32_thread_t));

0 comments on commit 2740214

Please sign in to comment.