/* If another thread started inputting before this one, but hasn't
* finished, we need to wait for it to complete to update the tail.
*/
/* If another thread started inputting before this one, but hasn't
* finished, we need to wait for it to complete to update the tail.
*/