PresetUpdater: Use PID in cache tmp filenames

This commit is contained in:
Vojtech Kral 2018-04-20 11:05:00 +02:00
parent 2e61420747
commit 9b5480b7ba
3 changed files with 22 additions and 3 deletions

View file

@ -62,6 +62,9 @@ extern std::string timestamp_str();
// to be placed at the top of Slic3r generated files.
inline std::string header_slic3r_generated() { return std::string("generated by " SLIC3R_FORK_NAME " " SLIC3R_VERSION " " ) + timestamp_str(); }
// getpid platform wrapper
extern unsigned get_current_pid();
// Compute the next highest power of 2 of 32-bit v
// http://graphics.stanford.edu/~seander/bithacks.html
template<typename T>