Check for emptyness at the same time as we add items to the list to prevent multiple threads from getting stuck at the same time
Check for emptyness at the same time as we add items to the list to prevent multiple threads from getting stuck at the same time

osi/jetio