mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -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
|
@ -22,6 +22,7 @@
|
|||
#include "p3FeedReaderThread.h"
|
||||
#include "rsFeedReaderItems.h"
|
||||
#include "util/rsstring.h"
|
||||
#include "util/rstime.h"
|
||||
#include "util/CURLWrapper.h"
|
||||
#include "util/XMLWrapper.h"
|
||||
#include "util/HTMLWrapper.h"
|
||||
|
@ -51,11 +52,8 @@ p3FeedReaderThread::~p3FeedReaderThread()
|
|||
|
||||
void p3FeedReaderThread::data_tick()
|
||||
{
|
||||
#ifdef WIN32
|
||||
Sleep(1000);
|
||||
#else
|
||||
usleep(1000000);
|
||||
#endif
|
||||
rstime::rs_usleep(1000000);
|
||||
|
||||
/* every second */
|
||||
|
||||
switch (mType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue