pfg 2030aa27d2 libthr: check for possible overflow in the pthread_barrier_init() count.
Following up on r320900, where the check for negative count values was
removed, add a check to prevent integer overflow. This is to account that
b_count, b_waiters but most importantly the total number of threads in
the system are signed values.

Discussed with:	kib
MFC after:	2 weeks
2017-07-15 15:00:13 +00:00
..
2017-05-19 13:04:05 +00:00
2017-05-26 15:56:28 +00:00
2017-05-26 15:53:27 +00:00
2017-05-19 13:04:05 +00:00
2017-03-19 00:51:12 +00:00
2017-05-19 13:04:05 +00:00
2017-05-19 13:04:05 +00:00