(update_lock, play_lock, update_pending, play_wrlock_wanted): Move to
main.c and rename to better reflect their purpose. Fix misleading comments.
This commit is contained in:
parent
d4150cc2ee
commit
a9afd1efef
5 changed files with 31 additions and 29 deletions
|
@ -88,7 +88,7 @@ dispatch(char *buf, char *redir)
|
|||
pr("Command not implemented\n");
|
||||
return 0;
|
||||
}
|
||||
empth_rwlock_rdlock(update_lock);
|
||||
empth_rwlock_rdlock(play_lock);
|
||||
if (redir) {
|
||||
prredir(redir);
|
||||
uprnf(buf);
|
||||
|
@ -110,7 +110,7 @@ dispatch(char *buf, char *redir)
|
|||
logerror("%s: returned bad value", command->c_form);
|
||||
break;
|
||||
}
|
||||
empth_rwlock_unlock(update_lock);
|
||||
empth_rwlock_unlock(play_lock);
|
||||
player->command = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue