Replace OSMillisecondsToTicks() with OSMicrosecondsToTicks(1000)

This commit is contained in:
Maschell 2018-06-18 22:08:39 +02:00
parent 449522d5ed
commit 2a5f6aaa82
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ void initNetwork(){
s32 recvwait(s32 sock, void *buffer, s32 len) {
while(socket_lock) {
OSSleepTicks(OSMillisecondsToTicks(1000));
OSSleepTicks(OSMicrosecondsToTicks(1000));
}
s32 ret;
while (len > 0) {
@ -49,7 +49,7 @@ u32 recvword(s32 sock) {
s32 checkbyte(s32 sock) {
while(socket_lock) {
OSSleepTicks(OSMillisecondsToTicks(1000));
OSSleepTicks(OSMicrosecondsToTicks(1000));
}
unsigned char buffer[1];
s32 ret;
@ -63,7 +63,7 @@ s32 checkbyte(s32 sock) {
s32 sendwait(s32 sock, const void *buffer, s32 len) {
while(socket_lock) {
OSSleepTicks(OSMillisecondsToTicks(1000));
OSSleepTicks(OSMicrosecondsToTicks(1000));
}
s32 ret;
while (len > 0) {

View File

@ -47,7 +47,7 @@ void TCPServer::CloseSockets() {
void TCPServer::ErrorHandling() {
CloseSockets();
OSSleepTicks(OSMillisecondsToTicks(1000*1000*2));
OSSleepTicks(OSMicrosecondsToTicks(1000*1000*2));
}
void TCPServer::DoTCPThreadInternal() {

View File

@ -35,7 +35,7 @@ void log_print_(const char *str) {
}
while(log_lock)
OSSleepTicks(OSMillisecondsToTicks(1000));
OSSleepTicks(OSMicrosecondsToTicks(1000));
log_lock = 1;
int len = strlen(str);