nldebug("SB: Pushing a buffer into SendQueue (from %u elts)",_SendQueue.size());
nldebug("SB: Pushing a buffer into SendQueue (from %u elts)",_SendQueue.size());
CAutoMutex<CUnfairMutex>mutex(_Mutex);
_SendQueue.push(buffer);
_SendQueue.push(buffer);
}
}
else
else
{
{
// protect socket because update() can be called in the main thread while send() can be called with passthru=true in the session browser thread (by authenticate() for example)
// protect socket because update() can be called in the main thread while send() can be called with passthru=true in the session browser thread (by authenticate() for example)