Skip to content

Commit c474b29

Browse files
Fix code to match expected output regarding dispose (#76) (#77)
1 parent aee8d30 commit c474b29

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

5_basic_qos/c++11/tempering_application.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ void process_lot(
7979
dds::core::InstanceHandle instance_handle =
8080
lot_state_writer.lookup_instance(updated_state);
8181
lot_state_writer.dispose_instance(instance_handle);
82+
std::cout << "Lot completed" << std::endl;
8283
}
8384
}
8485
} // The LoanedSamples destructor returns the loan

5_basic_qos/csharp/TemperingApplication/TemperingApplication.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ private void ProcessLot(
8585
// using a dispose
8686
var instanceHandle = lotStateWriter.LookupInstance(updatedState);
8787
lotStateWriter.DisposeInstance(instanceHandle);
88+
Console.WriteLine("Lot completed");
8889
}
8990
}
9091
}

6_content_filters/c++11/tempering_application.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void process_lot(
8888
dds::core::InstanceHandle instance_handle =
8989
lot_state_writer.lookup_instance(updated_state);
9090
lot_state_writer.dispose_instance(instance_handle);
91+
std::cout << "Lot completed" << std::endl;
9192
}
9293
}
9394
} // The LoanedSamples destructor returns the loan

0 commit comments

Comments
 (0)