Also use Interlocked.Increment(ref long) on Windows Phone.

This commit is contained in:
drieseng
2016-07-02 16:24:22 +02:00
parent ad5675c5dd
commit eb56b0fae8
+1 -10
View File
@@ -45,16 +45,7 @@ namespace Renci.SshNet.Sftp
{
get
{
#if WINDOWS_PHONE
lock (this)
{
this._requestId++;
}
return (uint)this._requestId;
#else
return ((uint) Interlocked.Increment(ref _requestId));
#endif
return (uint) Interlocked.Increment(ref _requestId);
}
}