/// <summary> /// Marks this <see cref="Submission"/> as fully prepared and ready to be submitted. /// </summary>released /// <param name="submission">Submission Queue Entry that is fully prepared</param> public void Release(Submission submission) => _sq.NotifyPrepared(submission.Index);
/// <summary> /// Attempts to acquire a Submission Queue Entry to be prepared. /// </summary> /// <remarks> /// On success, the <see cref="Submission"/> must immediately be prepared and <see cref="Release">d</see>. /// Failure to do so will block all <see cref="Submission"/>s after the one acquired here. /// </remarks> /// <param name="submission">Submission Queue Entry to prepare</param> /// <returns>Whether a Submission Queue Entry could be acquired</returns> public bool TryAcquireSubmission(out Submission submission) => _sq.NextSubmissionQueueEntry(out submission);