typo
This commit is contained in:
parent
f42777db6c
commit
4be632e1c0
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ current_thread(struct scheduler *s)
|
||||||
pthread_t current = pthread_self();
|
pthread_t current = pthread_self();
|
||||||
|
|
||||||
pthread_mutex_lock(&s->mutex);
|
pthread_mutex_lock(&s->mutex);
|
||||||
for(int i = 0; i < s->nthreads; i++) {
|
for(int i = 0; i < s->nthreads; ++i) {
|
||||||
if(pthread_equal(s->threads[i], current)) {
|
if(pthread_equal(s->threads[i], current)) {
|
||||||
pthread_mutex_unlock(&s->mutex);
|
pthread_mutex_unlock(&s->mutex);
|
||||||
return i;
|
return i;
|
||||||
|
|
Reference in a new issue