mirror of
https://github.com/gwm17/Daqromancy.git
synced 2024-11-22 18:58:51 -05:00
Squash some bugs found for compiling with g++
This commit is contained in:
parent
b3901ef37e
commit
83d81ed1d7
|
@ -31,7 +31,7 @@ namespace Daqromancy {
|
|||
std::scoped_lock<std::mutex> guard(m_queueMutex);
|
||||
m_queue.push_front(data);
|
||||
|
||||
std::scoped_lock<std::mutex> guard(m_conditionMutex);
|
||||
std::scoped_lock<std::mutex> condGuard(m_conditionMutex);
|
||||
m_conditional.notify_one();
|
||||
}
|
||||
|
||||
|
@ -124,4 +124,4 @@ namespace Daqromancy {
|
|||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -4,16 +4,6 @@
|
|||
|
||||
namespace Daqromancy {
|
||||
|
||||
static std::string SyncMethodToString(SyncMethod method)
|
||||
{
|
||||
switch (method)
|
||||
{
|
||||
case SyncMethod::SIn_TrigOut: return "SyncIn-TrigOut";
|
||||
case SyncMethod::None: return "None";
|
||||
}
|
||||
return "None";
|
||||
}
|
||||
|
||||
static std::string StartTypeToString(SyncStartType type)
|
||||
{
|
||||
switch (type)
|
||||
|
@ -46,7 +36,7 @@ namespace Daqromancy {
|
|||
{
|
||||
if (ImGui::BeginCombo("Method", SyncMethodToString(m_syncArgs.syncMethod).c_str()))
|
||||
{
|
||||
if (ImGui::Selectable("SyncIn-TrigOut", SyncMethod::SIn_TrigOut == m_syncArgs.syncMethod, ImGuiSelectableFlags_DontClosePopups))
|
||||
if (ImGui::Selectable("S-In TrigOut", SyncMethod::SIn_TrigOut == m_syncArgs.syncMethod, ImGuiSelectableFlags_DontClosePopups))
|
||||
m_syncArgs.syncMethod = SyncMethod::SIn_TrigOut;
|
||||
if (ImGui::Selectable("None", SyncMethod::None == m_syncArgs.syncMethod, ImGuiSelectableFlags_DontClosePopups))
|
||||
m_syncArgs.syncMethod = SyncMethod::None;
|
||||
|
@ -75,4 +65,4 @@ namespace Daqromancy {
|
|||
|
||||
return status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user