Il 05/03/2013 03:45, liu ping fan ha scritto: > > In fact, it's a bit strange to use nc->something_lock to lock something > > in nc->peer. Please add the lock to NetQueue and include/net/queue.h. > > The lock also servers as exclusion between NetClientState's sender and > remover. So if we apply lock on NetQueue, it can not achieve the > goal.
Ok, but please document it. Paolo