ningshuxia
2023-02-06 1fc0b4ed96d4c4b1ff7142926239998de32b2ada
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
using System;
using System.Threading;
 
namespace IStation
{
    internal class GetSetOperation
    {
        /// <summary>
        /// Locker for this cache key GetSet function
        /// </summary>
        internal object Lock { get; } = new object();
 
        /// <summary>
        /// A thread running a function to GetSet a cache item
        /// </summary>
        internal Thread Thread { get; set; }
 
        /// <summary>
        /// The return type of the GetSet function
        /// </summary>
        internal Type Type { get; set; }
 
        /// <summary>
        /// A directly set value (beating any function evaluation)
        /// </summary>
        internal object Value { get; set; }
    }
}