mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
Added: Global access to main thread reference
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
using System.Threading;
|
||||||
|
|
||||||
|
namespace Raindrop.Services.Bootstrap
|
||||||
|
{
|
||||||
|
public class Globals
|
||||||
|
{
|
||||||
|
public static Thread GMainThread;
|
||||||
|
|
||||||
|
public static bool isOnMainThread()
|
||||||
|
{
|
||||||
|
return Globals.GMainThread.Equals(System.Threading.Thread.CurrentThread);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d6787858bea64308a56b7107d7065b94
|
||||||
|
timeCreated: 1643349729
|
||||||
Reference in New Issue
Block a user