mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 16:58:57 +00:00
Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)
* Pre-increment (rather than post-increment) STL iterators in for loops. #1594 * Fix a goof. #1594
This commit is contained in:
@ -12,7 +12,7 @@ int Trick::VariableServer::freeze_init() {
|
||||
long long next_call_tics = TRICK_MAX_LONG_LONG ;
|
||||
|
||||
pthread_mutex_lock(&map_mutex) ;
|
||||
for ( auto it = var_server_sessions.begin() ; it != var_server_sessions.end() ; it++ ) {
|
||||
for ( auto it = var_server_sessions.begin() ; it != var_server_sessions.end() ; ++it ) {
|
||||
VariableServerSession * session = (*it).second ;
|
||||
session->freeze_init() ;
|
||||
if ( session->get_freeze_next_tics() < next_call_tics ) {
|
||||
|
Reference in New Issue
Block a user