2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-06-13 12:06:24 +03:00
parent 9c14fdf6bd
commit e77bda487d
3 changed files with 12 additions and 4 deletions
@@ -114,6 +114,9 @@ partial class EpConnection
AsyncReply SendRequest(EpPacketRequest action, params object[] args)
{
#if VERBOSE
Console.WriteLine($"Send request {action}");
#endif
var reply = new AsyncReply();
var c = (uint)Interlocked.Increment(ref _callbackCounter);
//callbackCounter++; // avoid thread racing
@@ -2491,7 +2494,7 @@ partial class EpConnection
//object fetchResourceLock = new object();
public AsyncReply<RemoteTypeDef> FetchTypeDef(ulong id, ulong[] requestSequence)
{
//Console.WriteLine($"Fetching typedef {id}");
//Console.WriteLine($"Fetching typedef {id} {Instance.Warehouse.GetHashCode()}");
RemoteTypeDef typeDef = _cachedTypeDefs[id];
@@ -2520,6 +2523,8 @@ partial class EpConnection
}
}
//Console.WriteLine($"Sent typedef {id} {Instance.Warehouse.GetHashCode()}");
var newSequence = requestSequence != null ? requestSequence.Concat(new ulong[] { id }).ToArray() : new ulong[] { id };
var reply = new AsyncReply<RemoteTypeDef>();