Go to the source code of this file.
GblThd, legacy, deprecated thread API.
- Deprecated:
- Use gimbal_thread.h
- Todo:
-
- Author
- Falco Girgis
Definition in file gimbal_thd.h.
◆ GblThd_callRecord()
Definition at line 80 of file gimbal_thd.h.
80 {
81 if(!pThread) {
82 pThread = GblThd_current();
83 }
84 return &pThread->callRecord;
85}
◆ GblThd_stackFrameTop()
Definition at line 54 of file gimbal_thd.h.
54 {
55 if(!pThread) pThread = GblThd_current();
56 return pThread->pStackFrameTop;
57}
◆ GblThd_stackFramePush()
Definition at line 59 of file gimbal_thd.h.
59 {
60 if(!pThread) pThread = GblThd_current();
61 if(pFrame) {
62 pFrame->pPrevFrame = pThread->pStackFrameTop;
63 if(GBL_RESULT_ERROR(pThread->callRecord.result)) {
64 GblThd_setCallRecord(pThread, GBL_NULL);
65 }
66 }
67 pThread->pStackFrameTop = pFrame;
68 return GBL_RESULT_SUCCESS;
69}
◆ GblThd_stackFramePop()
Definition at line 71 of file gimbal_thd.h.
71 {
72 if(!pThread) pThread = GblThd_current();
73 GBL_ASSERT(pThread->pStackFrameTop);
75 pThread->pStackFrameTop = pThread->pStackFrameTop? pThread->pStackFrameTop->pPrevFrame : GBL_NULL;
76 pPrevFrame->pPrevFrame = GBL_NULL;
77 return GBL_RESULT_SUCCESS;
78}
Represents a single function's stack frame, from GBL_CTX_BEGIN() to GBL_CTX_END()