mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	remove unnecessary goto
which is a bit of a shame
This commit is contained in:
		| @@ -248,17 +248,15 @@ int main(int argc, char **argv) { | ||||
|  | ||||
|   while (!finished) | ||||
|   for (auto & worker : workers) { | ||||
|     check_lollygagging: | ||||
|     if (worker.valid()) { | ||||
|       if (worker.wait_for(quantum) != future_status::ready) continue; | ||||
|       else { | ||||
|         int res = worker.get(); | ||||
|         if (res) { printf("compilation error!\n"); exit(1); } | ||||
|         ++tasks_done; | ||||
|         goto check_lollygagging; | ||||
|         } | ||||
|       } | ||||
|     else if (tasks_taken < tasks_amt) { | ||||
|     if (tasks_taken < tasks_amt) { | ||||
|       auto task = tasks[tasks_taken]; | ||||
|       int mid = task.first; | ||||
|       function<int(void)> do_work = task.second; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 still-flow
					still-flow