Revision 662
minor changes related to virtual wall
ColonetServer.cpp | ||
---|---|---|
136 | 136 |
usleep(10000); |
137 | 137 |
|
138 | 138 |
/* Refresh virtual wall. */ |
139 |
if (refresh_virtual_wall_count == REFRESH_VIRTUAL_WALL_PERIOD) { |
|
139 |
if (refresh_virtual_wall_count++ == REFRESH_VIRTUAL_WALL_PERIOD) {
|
|
140 | 140 |
fprintf(stderr, "Sending virtual wall info to robots.\n"); |
141 | 141 |
refresh_virtual_wall_count = 0; |
142 | 142 |
virtual_wall.send_to_robots(); |
143 | 143 |
} |
144 |
refresh_virtual_wall_count++; |
|
145 | 144 |
|
146 | 145 |
//tell the connection pool to look at the file descriptors and see which ones are ready |
147 | 146 |
connection_pool->perform_select(listen_socket); |
Also available in: Unified diff