MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / enqueue_control

Method enqueue_control

dds/DCPS/WriteDataContainer.cpp:275–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275DDS::ReturnCode_t
276WriteDataContainer::enqueue_control(DataSampleElement* control_sample)
277{
278 // Enqueue to the next_send_sample_ thread of unsent_data_
279 // will link samples with the next_sample/previous_sample and
280 // also next_send_sample_.
281 // This would save time when we actually send the data.
282
283 if (shutdown_) {
284 return DDS::RETCODE_ERROR;
285 }
286
287 unsent_data_.enqueue_tail(control_sample);
288
289 return DDS::RETCODE_OK;
290}
291
292// This method assumes that instance list has space for this sample.
293DDS::ReturnCode_t

Callers 5

send_request_ackMethod · 0.80
register_instance_iMethod · 0.80
unregister_instance_iMethod · 0.80
disposeMethod · 0.80

Calls 1

enqueue_tailMethod · 0.80

Tested by

no test coverage detected