mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 08:34:34 +00:00
Merge pull request #158 from AshkanAliabadi/master
Refer to std string and stream with their fully qualified names.
This commit is contained in:
commit
7eee5e3d26
@ -15602,9 +15602,9 @@ void VmaRecorder::GetBasicParams(CallParams& outParams)
|
|||||||
// There is room for optimization since sstream is quite slow.
|
// There is room for optimization since sstream is quite slow.
|
||||||
// Is there a better way to convert std::this_thread::get_id() to uint32_t?
|
// Is there a better way to convert std::this_thread::get_id() to uint32_t?
|
||||||
std::thread::id thread_id = std::this_thread::get_id();
|
std::thread::id thread_id = std::this_thread::get_id();
|
||||||
stringstream thread_id_to_string_converter;
|
std::stringstream thread_id_to_string_converter;
|
||||||
thread_id_to_string_converter << thread_id;
|
thread_id_to_string_converter << thread_id;
|
||||||
string thread_id_as_string = thread_id_to_string_converter.str();
|
std::string thread_id_as_string = thread_id_to_string_converter.str();
|
||||||
outParams.threadId = static_cast<uint32_t>(std::stoi(thread_id_as_string.c_str()));
|
outParams.threadId = static_cast<uint32_t>(std::stoi(thread_id_as_string.c_str()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user