yanglimingcn commented on PR #3244:
URL: https://github.com/apache/brpc/pull/3244#issuecomment-4071902479

   Normally, this kind of problem is handled by adding a dummy element to the 
linked list during initialization. When there are no elements, the head pointer 
points to the dummy element. Checking for null is done by checking if `head == 
dummy->next`.
   
   Would this implementation be better?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to