Ejemplo n.º 1
0
    bool ConnectorInterface::ReadText(behaviac::string& text)
    {
        if (this->IsConnected())
        {
            ScopedLock lock(ms_cs);

            text = this->ms_texts;
            this->ms_texts.clear();

            return !text.empty();
        }

        return false;
    }