Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion include/nn/os/os_ThreadTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ struct ThreadType {
ThreadFunction _threadFunction;
FiberType* _currentFiber;
FiberType* _initialFiber;
// may be inaccurate: SDK 4.4.0 has the field while 7.3.2 and 20.5.6 does not
#if NN_SDK_VER >= NN_MAKE_VER(5, 0, 0)
uint32_t _lockHistory;
#endif
uintptr_t _tlsValueArray[32];
char _threadNameBuffer[32];
const char* _namePointer;
Expand All @@ -47,9 +50,13 @@ struct ThreadType {
detail::InternalThreadHandle _handle;
};
#ifdef SWITCH
#if NN_SDK_VER >= NN_MAKE_VER(5, 0, 0) // see _lockHistory above
static_assert(sizeof(ThreadType) == 0x1B8, "Wrong size");
#else
static_assert(sizeof(ThreadType) == 0x1C0, "Wrong size");
#endif
#endif

} // namespace os

} // namespace nn
} // namespace nn
Loading