Open ongkoonhan opened 1 month ago
I noticed the implementation only increments head/tail atomic size_t variables. If head/tail reaches the max value of size_t and overflows, does the implementation still perform as expected?
yes, as the two's complement numbers add/subtract correctly across unsigned overflow.
I noticed the implementation only increments head/tail atomic size_t variables. If head/tail reaches the max value of size_t and overflows, does the implementation still perform as expected?