mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(thread): add SGetCurrentThreadId
This commit is contained in:
parent
34e01acca5
commit
8a90f867ae
3 changed files with 30 additions and 0 deletions
9
test/Thread.cpp
Normal file
9
test/Thread.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue