/
Counter.cs
29 lines (26 loc) · 956 Bytes
/
Counter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//-----------------------------------------------------------------------
// <copyright file="Counter.cs" company="Joey Woodson">
// Copyright © 2009 Joey Woodson. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace PrimeNumbers
{
/// <summary>
/// The struct used to represent the counters in the <see cref="IntPrimeThread"/>, <see cref="LongPrimeThread"/>, and <see cref="BigIntPrimeThread"/> classes.
/// </summary>
public struct Counter
{
/// <summary>
/// The current value of the counter.
/// </summary>
public uint Value;
/// <summary>
/// The number to add to the counter's value at each pass.
/// </summary>
public uint Stride;
/// <summary>
/// The prime number that the counter is checking divisibility for.
/// </summary>
public uint Prime;
}
}