Linux threaded producer/consumer test using a queue to exchange data between threads