/// <summary> /// Registers an action to be performed the next time a syncpoint is incremented. /// This will also ensure a host sync object is created, and <see cref="SyncNumber"/> is incremented. /// </summary> /// <param name="action">The action to be performed on sync object creation</param> /// <param name="syncpointOnly">True if the sync action should only run when syncpoints are incremented</param> public void RegisterSyncAction(Action action, bool syncpointOnly = false) { if (syncpointOnly) { SyncpointActions.Add(action); } else { SyncActions.Add(action); } }
/// <summary> /// Registers an action to be performed the next time a syncpoint is incremented. /// This will also ensure a host sync object is created, and <see cref="SyncNumber"/> is incremented. /// </summary> /// <param name="action">The action to be performed on sync object creation</param> public void RegisterSyncAction(Action action) { SyncActions.Add(action); }