Revision 1077 branches/simulator/projects/simulator/simulator/core/robot.c

View differences:

robot.c
308 308

  
309 309
		ret = pthread_mutex_lock(&all_finished_mutex);
310 310
		if(ret)
311
		  err(errno, "error locking mutex in even loop");
311
			err(errno, "error locking mutex in even loop");
312 312
		// TODO: race condition for adding robots?
313 313
		if (finished < num_robots)
314 314
		{
......
328 328
			if (robots[i].id != -1)
329 329
			{
330 330
				robot_update(i);
331

  
332 331
				commit(&robots[i],i,timeStep);
333 332
			}
334 333
		for (i = 0; i < robots_size; i++)

Also available in: Unified diff