Innovenergy_trunk/csharp/lib/Protocols/DBus/Protocol/SerialSource.cs

7 lines
239 B
C#

namespace InnovEnergy.Lib.Protocols.DBus.Protocol;
internal static class SerialSource
{
private static UInt32 _serial = 0;
public static UInt32 Next() => Interlocked.Increment(ref _serial); // wraps, does not throw on overflow
}