Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
24
Vendor/Swan.Lite-3.1.0/Threading/AtomicLong.cs
vendored
Normal file
24
Vendor/Swan.Lite-3.1.0/Threading/AtomicLong.cs
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace Swan.Threading
|
||||
{
|
||||
/// <summary>
|
||||
/// Fast, atomic long combining interlocked to write value and volatile to read values.
|
||||
/// </summary>
|
||||
public sealed class AtomicLong : AtomicTypeBase<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AtomicLong"/> class.
|
||||
/// </summary>
|
||||
/// <param name="initialValue">if set to <c>true</c> [initial value].</param>
|
||||
public AtomicLong(long initialValue = default)
|
||||
: base(initialValue)
|
||||
{
|
||||
// placeholder
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override long FromLong(long backingValue) => backingValue;
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override long ToLong(long value) => value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user