mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Add threadGetCurHandle
This commit is contained in:
parent
ccfb1fd4d2
commit
ede79862fb
@ -73,3 +73,9 @@ Result threadResume(Thread* t);
|
|||||||
* @warning Official kernel will not dump x0..x18 if the thread is currently executing a system call, and prior to 6.0.0 doesn't dump TPIDR_EL0.
|
* @warning Official kernel will not dump x0..x18 if the thread is currently executing a system call, and prior to 6.0.0 doesn't dump TPIDR_EL0.
|
||||||
*/
|
*/
|
||||||
Result threadDumpContext(ThreadContext* ctx, Thread* t);
|
Result threadDumpContext(ThreadContext* ctx, Thread* t);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the raw handle to the current thread.
|
||||||
|
* @return The current thread's handle.
|
||||||
|
*/
|
||||||
|
Handle threadGetCurHandle(void);
|
||||||
|
@ -138,3 +138,7 @@ Result threadResume(Thread* t) {
|
|||||||
Result threadDumpContext(ThreadContext* ctx, Thread* t) {
|
Result threadDumpContext(ThreadContext* ctx, Thread* t) {
|
||||||
return svcGetThreadContext3(ctx, t->handle);
|
return svcGetThreadContext3(ctx, t->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Handle threadGetCurHandle(void) {
|
||||||
|
return getThreadVars()->handle;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user