You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
618 B
22 lines
618 B
5 years ago
|
#if FAT
|
||
|
|
||
|
namespace LinqInternal.Threading
|
||
|
{
|
||
|
internal static partial class ThreadingHelper
|
||
|
{
|
||
|
// Leaked
|
||
|
private static readonly TrackingThreadLocal<RuntimeUniqueIdProdiver.UniqueId> _threadRuntimeUniqueId = new TrackingThreadLocal<RuntimeUniqueIdProdiver.UniqueId>(RuntimeUniqueIdProdiver.GetNextId);
|
||
|
|
||
|
public static bool HasThreadUniqueId
|
||
|
{
|
||
|
get { return _threadRuntimeUniqueId.IsValueCreated; }
|
||
|
}
|
||
|
|
||
|
public static RuntimeUniqueIdProdiver.UniqueId ThreadUniqueId
|
||
|
{
|
||
|
get { return _threadRuntimeUniqueId.Value; }
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|