struct mrpt::gui::WxSubsystem::TWxMainThreadData

Overview

#include <mrpt/gui/WxSubsystem.h>

struct TWxMainThreadData
{
    // fields

    std::thread m_wxMainThreadId;
    std::promise<void> m_semWxMainThreadReady;
    std::promise<void> m_done;
    std::mutex m_csWxMainThreadId;
};

Fields

std::thread m_wxMainThreadId

The thread ID of wxMainThread, or 0 if it is not running.

std::promise<void> m_semWxMainThreadReady

This is signaled when wxMainThread is ready.

std::mutex m_csWxMainThreadId

The critical section for accessing “m_wxMainThreadId”.