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