mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Clean up '#if CORE' in Utilities.cs (#4425)
This commit is contained in:
1 parent
ea3c207636
commit
1841682c08
1 file changed
+2
-4
@@ -837,9 +837,8 @@ namespace System.Management.Automation.Interpreter
|
||||
private StorageInfo CreateStorageInfo()
|
||||
{
|
||||
// we do our own locking, tell hosts this is a bad time to interrupt us.
|
||||
#if !SILVERLIGHT && !CORECLR
|
||||
Thread.BeginCriticalRegion();
|
||||
#endif
|
||||
|
||||
StorageInfo[] curStorage = s_updating;
|
||||
try
|
||||
{
|
||||
@@ -886,9 +885,8 @@ namespace System.Management.Automation.Interpreter
|
||||
// let others access the storage again
|
||||
Interlocked.Exchange(ref _stores, curStorage);
|
||||
}
|
||||
#if !SILVERLIGHT && !CORECLR
|
||||
|
||||
Thread.EndCriticalRegion();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user