mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-22 05:44:54 -04:00
replaced usleep() by rstime::rs_usleep() which accepts times >= 1 sec. Should fix problems on windows
This commit is contained in:
parent
c1fccef53b
commit
d0039241d3
28 changed files with 134 additions and 100 deletions
|
@ -30,7 +30,8 @@
|
|||
#include "notifytxt.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <util/argstream.h>
|
||||
#include "util/argstream.h"
|
||||
#include "util/rstime.h"
|
||||
#include <iostream>
|
||||
#ifdef WINDOWS_SYS
|
||||
#include <winsock2.h>
|
||||
|
@ -105,7 +106,7 @@ int main(int argc, char **argv)
|
|||
|
||||
while(ctrl_mod.processShouldExit() == false)
|
||||
{
|
||||
usleep(1000*1000);
|
||||
rstime::rs_usleep(1000*1000);
|
||||
|
||||
if(!tac.isRunning() && !already)
|
||||
{
|
||||
|
@ -224,7 +225,7 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
}
|
||||
|
||||
usleep(1000);
|
||||
rstime::rs_usleep(1000);
|
||||
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue