mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41:49 +01:00
parent
76b31245f8
commit
695d9b3e31
@ -81,8 +81,8 @@ namespace DS4Windows
|
||||
public UdpServer(GetPadDetail getPadDetailDel)
|
||||
{
|
||||
portInfoGet = getPadDetailDel;
|
||||
argsList = new SocketAsyncEventArgs[20];
|
||||
for (int num = 0; num <= 19; num++)
|
||||
argsList = new SocketAsyncEventArgs[40];
|
||||
for (int num = 0; num < 40; num++)
|
||||
{
|
||||
SocketAsyncEventArgs args = new SocketAsyncEventArgs();
|
||||
args.SetBuffer(new byte[100], 0, 100);
|
||||
@ -188,7 +188,7 @@ namespace DS4Windows
|
||||
int temp = 0;
|
||||
poolLock.EnterWriteLock();
|
||||
temp = listInd;
|
||||
listInd = ++listInd % 20;
|
||||
listInd = ++listInd % 40;
|
||||
SocketAsyncEventArgs args = argsList[temp];
|
||||
poolLock.ExitWriteLock();
|
||||
|
||||
@ -654,7 +654,7 @@ namespace DS4Windows
|
||||
int temp = 0;
|
||||
poolLock.EnterWriteLock();
|
||||
temp = listInd;
|
||||
listInd = ++listInd % 20;
|
||||
listInd = ++listInd % 40;
|
||||
SocketAsyncEventArgs args = argsList[temp];
|
||||
poolLock.ExitWriteLock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user