1
0
Fork 0
mirror of https://github.com/gwm17/Daqromancy.git synced 2024-11-22 10:58:49 -05:00

Squash some bugs found for compiling with g++

This commit is contained in:
Gordon McCann 2022-09-29 14:23:28 -04:00
parent b3901ef37e
commit 83d81ed1d7
2 changed files with 4 additions and 14 deletions

View File

@ -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

View File

@ -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;
}
}
}