Skip to content
Snippets Groups Projects
Commit 63b048ac authored by rswindell's avatar rswindell
Browse files

Bugfix in threadsafe version of list_wait() - listSemWait functions return

BOOL (not int).
parent b2193527
No related branches found
No related tags found
No related merge requests found
......@@ -150,11 +150,11 @@ static BOOL list_wait(link_list_t* list, long timeout)
{
#if defined(LINK_LIST_THREADSAFE)
if(timeout<0) /* infinite */
return listSemWait(list)==0;
return listSemWait(list);
if(timeout==0) /* poll */
return listSemTryWait(list)==0;
return listSemTryWait(list);
return listSemTryWaitBlock(list,timeout)==0;
return listSemTryWaitBlock(list,timeout);
#else
clock_t start;
long count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment