예제 #1
0
bool Client::disconnectServer( ServerPtr server )
{
    bool success = true;

    // shut down process-local server (see _startLocalServer)
    if( server->_localServer )
    {
        EQASSERT( server->isConnected( ));
        EQCHECK( server->shutdown( ));
        _joinLocalServer();
        server->_localServer = false;
        server->setClient( 0 );
        EQASSERT( !server->isConnected( ))
    }
예제 #2
0
파일: client.cpp 프로젝트: maxmah/Equalizer
bool Client::disconnectServer( ServerPtr server )
{
    bool success = true;

    // shut down process-local server (see _startLocalServer)
    if( server->_localServer )
    {
        LBASSERT( server->isConnected( ));
        LBCHECK( server->shutdown( ));
        _joinLocalServer();
        server->_localServer = false;
        server->setClient( 0 );
        LBASSERT( !server->isConnected( ));
    }
    else
    {
        server->setClient( 0 );
        success = Super::disconnectServer( server.get( ));
    }

    _mainThreadQueue.flush();
    return success;
}