/*
 * SPDX-FileCopyrightText: 2004 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#include <tango/server/KillThread.h>

#include <tango/server/Logging.h>
#include <tango/server/Util.h>

namespace Tango
{
void *KillThread::run_undetached(TANGO_UNUSED(void *ptr))
{
    TANGO_LOG_DEBUG << "In the killer thread !!!" << std::endl;

    is_tango_library_thread = true;

    //
    // Shutdown the server
    //

    Tango::Util *tg = Tango::Util::instance();
    tg->shutdown_ds();

    return nullptr;
}
} // namespace Tango
