Skip to content

Commit

Permalink
Remove noisy debug print darktable-org#2
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Jul 12, 2024
1 parent e827ca7 commit 5cafb02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/dtpthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ static inline int dt_pthread_mutex_lock_with_caller(dt_pthread_mutex_t *mutex, c
mutex->time_sum_wait += wait;
char *name = mutex->name;
snprintf(mutex->name, sizeof(mutex->name), "%s:%d (%s)", file, line, function);
fprintf(stdout, "Thread lock %s acquired\n", mutex->name);
// TODO: have a -d thread option
//fprintf(stdout, "Thread lock %s acquired\n", mutex->name);
int min_wait_slot = 0;
for(int k = 0; k < TOPN; k++)
{
Expand Down Expand Up @@ -174,7 +175,8 @@ static inline int dt_pthread_mutex_unlock_with_caller(dt_pthread_mutex_t *mutex,

char *name = mutex->name;
snprintf(mutex->name, sizeof(mutex->name), "%s:%d (%s)", file, line, function);
fprintf(stdout, "Thread lock %s released\n", mutex->name);
// TODO: have a -d thread debug arg
//fprintf(stdout, "Thread lock %s released\n", mutex->name);
int min_locked_slot = 0;
for(int k = 0; k < TOPN; k++)
{
Expand Down

0 comments on commit 5cafb02

Please sign in to comment.