Some minor documentation and formatting fixes

git-svn-id: file:///srv/devel/repo-conversion/nusu@53 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2007-09-28 21:31:13 +00:00
parent 8962835029
commit 7812f88aca
2 changed files with 9 additions and 6 deletions

View File

@ -254,7 +254,7 @@ namespace Nuclex.Support.Serialization {
CurveContinuity continuity = (CurveContinuity)reader.ReadByte();
curve.Keys.Add(new CurveKey(position, value, tangentIn, tangentOut, continuity));
}
}
}
/// <summary>Serializes a curve into a binary data stream</summary>
@ -280,7 +280,6 @@ namespace Nuclex.Support.Serialization {
}
#endregion // Microsoft.Xna.Framework.Curve
} // class BinarySerializer

View File

@ -139,15 +139,16 @@ namespace Nuclex.Support.Tracking {
// Construct a new observation wrapper. This is done inside the lock
// because as soon as we are subscribed to the events, we can potentially
// receive them. This would otherwise risk processing a progress update
// receive them. The lock eliminates the risk of processing a progress update
// before the progression has been added to the tracked progressions list.
if(progression.Ended) {
// If the ended progression would become the only progression in the list,
// there's no sense in doing anything at all because it would have to
// be thrown right out again
// there's no sense in doing anything at all because it would have to be
// thrown right out again. So only add the progression if it hasn't ended yet.
if(!wasEmpty) {
// Add the progression into our tracked progressions list.
this.trackedProgressions.Add(
new ObservedWeightedProgression<Progression>(
new WeightedProgression<Progression>(progression, weight),
@ -164,6 +165,8 @@ namespace Nuclex.Support.Tracking {
} else { // Progression is still running
// Construct a new progression observer and add the progression to our
// list of tracked progressions.
ObservedWeightedProgression<Progression> observedProgression =
new ObservedWeightedProgression<Progression>(
new WeightedProgression<Progression>(progression, weight),
@ -184,7 +187,8 @@ namespace Nuclex.Support.Tracking {
// The progression might have ended before we had registered to its AsyncEnded
// event, so we have to do this to be on the safe side. This might cause
// asyncEnded() to be called twice, but that's not a problem at all.
// asyncEnded() to be called twice, but that's not a problem in this
// implementation and was accepted for performance reasons.
if(progression.Ended) {
asyncEnded();
observedProgression.Dispose();