SkiaSharp Abstracts a platform dependant lock implementation Helper class to create a IPlatformLock instance, by default according to the current platform but also client toolkits can plugin their own implementation. Creates a platform lock The factory for creating platform locks Use this to plugin your own lock implementation. Must be set before using other SkiaSharp functionality that causes the lock to be created (currently only used by SkiaSharps internal HandleDictionary). Default platform lock factory A reference to a new platform lock implementation Non-Windows platform lock uses ReaderWriteLockSlim Windows platform lock uses Win32 CRITICAL_SECTION Retrieve the living instance if there is one, or null if not. The instance if it is alive, or null if there is none. Retrieve or create an instance for the native handle. The instance, or null if the handle was null. Retrieve the living instance if there is one, or null if not. This does not use locks. The instance if it is alive, or null if there is none. Registers the specified instance with the dictionary. Removes the registered instance from the dictionary. Perform the restore now, instead of waiting for the Dispose. Will only do this once.