Implement multi threading critical section
From the MT design:
void startPktProcessing();
void stopPktProcessing();
we need too a RAII class implementing stop at the constructor and start at the destructor. I propose MultiThreadingCriticalSection
. The last point to discuss is where to put this, e.g. src/lib/dhcpsrv/multi_threading_utils.h
?
The RAII class will be used by DHCPv4 and DHCPv6 server hooks which modify the configuration.
Edited by Francis Dupont