MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / makeTempFilename

Function makeTempFilename

src/backend/common/util.cpp:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245#endif
246
247string makeTempFilename() {
248 thread_local size_t fileCount = 0u;
249
250 ++fileCount;
251 const size_t threadID = hash<thread::id>{}(std::this_thread::get_id());
252
253 return to_string(
254 hash<string>{}(to_string(threadID) + "_" + to_string(fileCount)));
255}
256
257template<typename T>
258string toString(T value) {

Callers 2

compileModuleFunction · 0.85
compileModuleFunction · 0.85

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected