Home > Software engineering >  AccpetEx completion port, SO_ACCEPT SO_RECEIVE need to delete pOverlapped?
AccpetEx completion port, SO_ACCEPT SO_RECEIVE need to delete pOverlapped?

Time:11-17

CreateIoCompletionPort AccpetEx completion port,
I found some source code, when SO_ACCEPT, you need to delete pOverlapped, then new pOverlapped, WSARecv (... , & amp; POverlapped);
And SO_RECEIVE also is same,
And it is used to CArray or CList, CMap saved,

Now I just want to ask the eldest brother:
1, you need to delete the new another new WSARecv (... , & amp; POverlapped);
2, in the use of linked list save PerSocketData, and pOverlapped list need to add the critical area?

CodePudding user response:

2. List need to add the critical area?
Iocp you, affirmation multithreaded access list, you need thread synchronization,

CodePudding user response:

reference 1st floor smwhotjay response:
2. The list need to add the critical area?
Iocp you, affirmation multithreaded access list, you need to thread synchronization,


List and the critical region,

The 1? Need to delete?
  • Related