mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 13:01:41 +00:00
Changed: Use nlSleep instead of usleep
This commit is contained in:
parent
7892573ab0
commit
ab67c892bb
1 changed files with 0 additions and 10 deletions
|
@ -293,12 +293,7 @@ public:
|
||||||
if (!atomic_swap (&_Lock))
|
if (!atomic_swap (&_Lock))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
|
||||||
nlSleep (wait_time);
|
nlSleep (wait_time);
|
||||||
#else
|
|
||||||
//std::cout << "Sleeping i=" << i << std::endl;
|
|
||||||
usleep( wait_time*1000 );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -401,12 +396,7 @@ public:
|
||||||
if (!CFastMutex::atomic_swap (&_Lock))
|
if (!CFastMutex::atomic_swap (&_Lock))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
|
||||||
nlSleep (wait_time);
|
nlSleep (wait_time);
|
||||||
#else
|
|
||||||
//std::cout << "Sleeping i=" << i << std::endl;
|
|
||||||
usleep( wait_time*1000 );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue