feat(thread): add SGetCurrentThreadId

This commit is contained in:
fallenoak 2021-12-17 15:43:58 -06:00
parent 34e01acca5
commit 8a90f867ae
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 30 additions and 0 deletions

9
test/Thread.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "storm/Thread.hpp"
#include "test/Test.hpp"
TEST_CASE("SGetCurrentThreadId", "[thread]") {
SECTION("returns thread id") {
uintptr_t threadId = SGetCurrentThreadId();
CHECK(threadId > 0);
}
}