def _get_results_from_queue(self, result_queue, results, n, total_runs):
<EOL>while not result_queue.empty():<EOL><INDENT>result = result_queue.get()<EOL>n = self._check_result_and_store_references(result, results, n, total_runs)<EOL><DEDENT>return n<EOL>
Extract all available results from the queue and returns the increased n