mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-11 01:36:39 +00:00
Also use Interlocked.Increment(ref long) on Windows Phone.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user