show wu state while waiting for finish

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1025 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
drotos 2007-02-02 10:22:21 +00:00 committed by Adam Visegradi
parent f3e316ef5e
commit 5786ad90fa
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ t(int what)
DC_setMasterCb(result_cb, subresult_cb, message_cb);
while (DC_getWUState(wu) != DC_WU_FINISHED)
{
printf("wu is in state %s\n",
_DC_state_name(DC_getWUState(wu)));
printf("Processing events for 1 sec...\n");
DC_processMasterEvents(1);
}