Commit 1e66cb7f authored by Geoff Simmons's avatar Geoff Simmons

trackrdrd: Fixed an off-by-one error in the last commit

parent ec965457
......@@ -99,9 +99,9 @@ static void
pthread_exit((void *) &proddata);
}
#define consumer_exit(pcdata, reason) \
do { \
(pcdata)->fail = (reason); \
#define consumer_exit(pcdata, reason) \
do { \
(pcdata)->fail = (reason); \
pthread_exit((pcdata)); \
} while(0)
......@@ -109,7 +109,7 @@ static void
*consumer(void *arg)
{
int id = *((int *) arg), deqs = 0;
prod_con_data_t *pcdata = &condata[id];
prod_con_data_t *pcdata = &condata[id-1];
pcdata->sum = 0;
pcdata->fail = SUCCESS;
unsigned *xid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment