mirror of https://github.com/BOINC/boinc.git
DC_processEvents return if there are no more running WU.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@490 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
parent
84480569ad
commit
4cfba68cbc
|
@ -27,6 +27,12 @@ int DC_processEvents(int timeout)
|
|||
if (retval)
|
||||
return retval;
|
||||
|
||||
if (DC_getWUNumber(DC_WU_RUNNING) == 0)
|
||||
{
|
||||
DC_log(LOG_INFO, "DC_processEvents: No more running workunits ... returning");
|
||||
return 0;
|
||||
}
|
||||
|
||||
current = time(NULL);
|
||||
if (current - start > timeout)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue