mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 15:51:29 -04:00
created 2 subclasses of RsThread, one for ticking services, and one for single shot jobs. Now all threads use the same base code.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8288 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f2d4a237ca
commit
e9b9dce9f5
28 changed files with 317 additions and 335 deletions
|
@ -53,7 +53,7 @@ int pqithreadstreamer::tick()
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pqithreadstreamer::data_tick()
|
||||
void pqithreadstreamer::data_tick()
|
||||
{
|
||||
uint32_t recv_timeout = 0;
|
||||
uint32_t sleep_period = 0;
|
||||
|
@ -68,7 +68,7 @@ int pqithreadstreamer::data_tick()
|
|||
if (!isactive)
|
||||
{
|
||||
usleep(DEFAULT_STREAMER_IDLE_SLEEP);
|
||||
return 0;
|
||||
return ;
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -92,7 +92,6 @@ int pqithreadstreamer::data_tick()
|
|||
{
|
||||
usleep(sleep_period);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue