Exemple #1
0
 public static extern ReturnCode WaitForAcknowledgments(IntPtr pub, Duration maxWait);
Exemple #2
0
 /// <summary>
 /// Blocks the calling thread until either all data written by the reliable <see cref="DataWriter" /> entities is acknowledged by all
 /// matched reliable <see cref="DataReader" /> entities, or else the duration specified by the maxWait parameter elapses, whichever happens
 /// first. A return value of <see cref="ReturnCode.Ok" /> indicates that all the samples written have been acknowledged by all reliable matched data readers;
 /// a return value of <see cref="ReturnCode.Timeout" /> indicates that maxWait elapsed before all the data was acknowledged.
 /// </summary>
 /// <param name="maxWait">The maximum <see cref="Duration" /> time to wait for the acknowledgments.</param>
 /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns>
 public ReturnCode WaitForAcknowledgments(Duration maxWait)
 {
     return(UnsafeNativeMethods.WaitForAcknowledgments(_native, maxWait));
 }