@@ -252,7 +252,6 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
252252 size_t tss ;
253253#endif
254254
255- dprintf (("PyThread_start_new_thread called\n" ));
256255 if (!initialized )
257256 PyThread_init_thread ();
258257
@@ -358,7 +357,6 @@ PyThread_get_thread_native_id(void)
358357void _Py_NO_RETURN
359358PyThread_exit_thread (void )
360359{
361- dprintf (("PyThread_exit_thread called\n" ));
362360 if (!initialized )
363361 exit (0 );
364362 pthread_exit (0 );
@@ -376,7 +374,6 @@ PyThread_allocate_lock(void)
376374 sem_t * lock ;
377375 int status , error = 0 ;
378376
379- dprintf (("PyThread_allocate_lock called\n" ));
380377 if (!initialized )
381378 PyThread_init_thread ();
382379
@@ -392,7 +389,6 @@ PyThread_allocate_lock(void)
392389 }
393390 }
394391
395- dprintf (("PyThread_allocate_lock() -> %p\n" , (void * )lock ));
396392 return (PyThread_type_lock )lock ;
397393}
398394
@@ -403,7 +399,6 @@ PyThread_free_lock(PyThread_type_lock lock)
403399 int status , error = 0 ;
404400
405401 (void ) error ; /* silence unused-but-set-variable warning */
406- dprintf (("PyThread_free_lock(%p) called\n" , lock ));
407402
408403 if (!thelock )
409404 return ;
@@ -435,8 +430,6 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
435430 int status , error = 0 ;
436431
437432 (void ) error ; /* silence unused-but-set-variable warning */
438- dprintf (("PyThread_acquire_lock_timed(%p, %lld, %d) called\n" ,
439- lock , microseconds , intr_flag ));
440433
441434 _PyTime_t timeout ; // relative timeout
442435 if (microseconds >= 0 ) {
@@ -544,8 +537,6 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
544537 success = PY_LOCK_FAILURE ;
545538 }
546539
547- dprintf (("PyThread_acquire_lock_timed(%p, %lld, %d) -> %d\n" ,
548- lock , microseconds , intr_flag , success ));
549540 return success ;
550541}
551542
@@ -556,7 +547,6 @@ PyThread_release_lock(PyThread_type_lock lock)
556547 int status , error = 0 ;
557548
558549 (void ) error ; /* silence unused-but-set-variable warning */
559- dprintf (("PyThread_release_lock(%p) called\n" , lock ));
560550
561551 status = sem_post (thelock );
562552 CHECK_STATUS ("sem_post" );
@@ -573,7 +563,6 @@ PyThread_allocate_lock(void)
573563 pthread_lock * lock ;
574564 int status , error = 0 ;
575565
576- dprintf (("PyThread_allocate_lock called\n" ));
577566 if (!initialized )
578567 PyThread_init_thread ();
579568
@@ -599,7 +588,6 @@ PyThread_allocate_lock(void)
599588 }
600589 }
601590
602- dprintf (("PyThread_allocate_lock() -> %p\n" , (void * )lock ));
603591 return (PyThread_type_lock ) lock ;
604592}
605593
@@ -610,7 +598,6 @@ PyThread_free_lock(PyThread_type_lock lock)
610598 int status , error = 0 ;
611599
612600 (void ) error ; /* silence unused-but-set-variable warning */
613- dprintf (("PyThread_free_lock(%p) called\n" , lock ));
614601
615602 /* some pthread-like implementations tie the mutex to the cond
616603 * and must have the cond destroyed first.
@@ -632,9 +619,6 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
632619 pthread_lock * thelock = (pthread_lock * )lock ;
633620 int status , error = 0 ;
634621
635- dprintf (("PyThread_acquire_lock_timed(%p, %lld, %d) called\n" ,
636- lock , microseconds , intr_flag ));
637-
638622 if (microseconds == 0 ) {
639623 status = pthread_mutex_trylock ( & thelock -> mut );
640624 if (status != EBUSY )
@@ -694,8 +678,6 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
694678 }
695679
696680 if (error ) success = PY_LOCK_FAILURE ;
697- dprintf (("PyThread_acquire_lock_timed(%p, %lld, %d) -> %d\n" ,
698- lock , microseconds , intr_flag , success ));
699681 return success ;
700682}
701683
@@ -706,7 +688,6 @@ PyThread_release_lock(PyThread_type_lock lock)
706688 int status , error = 0 ;
707689
708690 (void ) error ; /* silence unused-but-set-variable warning */
709- dprintf (("PyThread_release_lock(%p) called\n" , lock ));
710691
711692 status = pthread_mutex_lock ( & thelock -> mut );
712693 CHECK_STATUS_PTHREAD ("pthread_mutex_lock[3]" );
0 commit comments