protect priority queue with a lock
1 file changed