Skip to content

Commit

Permalink
Qfix: use a time-based shm name
Browse files Browse the repository at this point in the history
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com>
  • Loading branch information
AeroStun committed Jan 22, 2021
1 parent fb0204b commit 3a65ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SMCE/BoardRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ LONG NTAPI NtResumeProcess(HANDLE ProcessHandle);
#error "Unsupported platform"
#endif

#include <ctime>
#include <mutex>
#include <span>
#include <string>
Expand All @@ -55,7 +56,7 @@ enum class BoardRunner::Command {
};

struct BoardRunner::Internal {
unsigned sketch_id = 549; //FIXME use a dynamic value
std::uint64_t sketch_id = std::time(nullptr);
SharedBoardData sbdata;
bp::child sketch;
};
Expand Down

0 comments on commit 3a65ba6

Please sign in to comment.