Skip to content

Commit 89b6d3c

Browse files
committed
Comment out verbose pthreads
1 parent 0de1fc9 commit 89b6d3c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/posix/pthread.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int pthread_mutex_lock(pthread_mutex_t *mutex)
8383
{
8484
if (mutex == nullptr) return 1;
8585
lock(mutex->spinlock);
86-
//SMP_PRINT("Locked %p\n", mutex);
86+
//SMP_PRINT("Spin locked %p\n", mutex);
8787
return 0;
8888
}
8989
int pthread_mutex_trylock(pthread_mutex_t *mutex)
@@ -96,7 +96,7 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex)
9696
int pthread_mutex_unlock(pthread_mutex_t *mutex)
9797
{
9898
if (mutex == nullptr) return 1;
99-
//SMP_PRINT("Unlocked %p\n", mutex);
99+
//SMP_PRINT("Spin unlocked %p\n", mutex);
100100
unlock(mutex->spinlock);
101101
return 0;
102102
}
@@ -109,7 +109,7 @@ int pthread_once(pthread_once_t*, void (*routine)())
109109
{
110110
thread_local bool executed = false;
111111
if (!executed) {
112-
printf("Executing pthread_once routine %p\n", routine);
112+
//SMP_PRINT("Executing pthread_once routine %p\n", routine);
113113
executed = true;
114114
routine();
115115
}
@@ -118,17 +118,17 @@ int pthread_once(pthread_once_t*, void (*routine)())
118118

119119
int pthread_cond_wait(pthread_cond_t* cond, pthread_mutex_t* mutex)
120120
{
121-
SMP_PRINT("pthread_cond_wait\n");
121+
//SMP_PRINT("pthread_cond_wait\n");
122122
return 0;
123123
}
124124
int pthread_cond_broadcast(pthread_cond_t* cond)
125125
{
126-
SMP_PRINT("pthread_cond_broadcast\n");
126+
//SMP_PRINT("pthread_cond_broadcast\n");
127127
return 0;
128128
}
129129
int pthread_cond_signal(pthread_cond_t* cond)
130130
{
131-
SMP_PRINT("pthread_cond_signal %p\n", cond);
131+
//SMP_PRINT("pthread_cond_signal %p\n", cond);
132132
return 0;
133133
}
134134
int pthread_cond_timedwait(pthread_cond_t* cond,
@@ -161,7 +161,7 @@ int pthread_setspecific(pthread_key_t key, const void *value)
161161
}
162162
int pthread_key_create(pthread_key_t *key, void (*destructor)(void*))
163163
{
164-
printf("pthread_key_create: %p destructor %p\n", key, destructor);
164+
//SMP_PRINT("pthread_key_create: %p destructor %p\n", key, destructor);
165165
scoped_spinlock spinlock(key_lock);
166166
key_vec.push_back(nullptr);
167167
*key = key_vec.size()-1;

0 commit comments

Comments
 (0)