process_media_queue_getter
params:
- queue: a PriorityQueue object
This function gets the next item in the queue. It uses a thread lock in order to prevent to threads from fetching the same item. To read more about thread safe queues please refer to: https://www.geeksforgeeks.org/multithreaded-priority-queue-in-python/
Updated over 3 years ago