SINK thread (not INTERM) notify its termination

Use !!node_param->type & SINK in likely macro to test wether we are a
SINK node or an INTERM node.
This commit is contained in:
Thomas Preud'homme 2011-06-01 15:20:10 +02:00
parent bd7379e73a
commit f0c75c7570
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ static int consumer_data(node_param_t *node_param)
/*printf("[%p] Just received %d word-sized data%s\n", (void *) pthread_self(), WORDS_PER_LINE, WORDS_PER_LINE ? "s" : "");*/
}
}
if (unlikely(!(node_param->type & SINK)))
if (unlikely(!!(node_param->type & SINK)))
printf("[%p] Consumer finished !\n", (void*) pthread_self());
if (delayed_error)
return -1;