remove parallel from watchlist
This commit is contained in:
parent
b1267b22df
commit
be98f272f2
|
@ -177,10 +177,10 @@ namespace BizHawk.Client.Common
|
||||||
/// <param name="watches"><see cref="IEnumerable{Watch}"/> of watch to merge</param>
|
/// <param name="watches"><see cref="IEnumerable{Watch}"/> of watch to merge</param>
|
||||||
public void AddRange(IEnumerable<Watch> watches)
|
public void AddRange(IEnumerable<Watch> watches)
|
||||||
{
|
{
|
||||||
Parallel.ForEach(watches, watch =>
|
foreach(var watch in watches)
|
||||||
{
|
{
|
||||||
_watchList.Add(watch);
|
_watchList.Add(watch);
|
||||||
});
|
}
|
||||||
Changes = true;
|
Changes = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ namespace BizHawk.Client.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void ClearChangeCounts()
|
public void ClearChangeCounts()
|
||||||
{
|
{
|
||||||
Parallel.ForEach(_watchList, watch => watch.ClearChangeCount());
|
foreach(var watch in _watchList) watch.ClearChangeCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -232,7 +232,7 @@ namespace BizHawk.Client.Common
|
||||||
public void RefreshDomains(IMemoryDomains core, PreviousType previousType)
|
public void RefreshDomains(IMemoryDomains core, PreviousType previousType)
|
||||||
{
|
{
|
||||||
_memoryDomains = core;
|
_memoryDomains = core;
|
||||||
Parallel.ForEach(_watchList, watch =>
|
foreach(var watch in _watchList)
|
||||||
{
|
{
|
||||||
if (watch.IsSeparator)
|
if (watch.IsSeparator)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +243,7 @@ namespace BizHawk.Client.Common
|
||||||
watch.ResetPrevious();
|
watch.ResetPrevious();
|
||||||
watch.Update(previousType);
|
watch.Update(previousType);
|
||||||
watch.ClearChangeCount();
|
watch.ClearChangeCount();
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -251,10 +251,10 @@ namespace BizHawk.Client.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void UpdateValues(PreviousType previousType)
|
public void UpdateValues(PreviousType previousType)
|
||||||
{
|
{
|
||||||
Parallel.ForEach(_watchList, watch =>
|
foreach(var watch in _watchList)
|
||||||
{
|
{
|
||||||
watch.Update(previousType);
|
watch.Update(previousType);
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue