Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/F-Stack/f-stack
/ SwitchContext
Method
SwitchContext
adapter/micro_thread/micro_thread.cpp:125–131 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
123
}
124
125
void Thread::SwitchContext()
126
{
127
if (save_context(_jmpbuf) == 0)
128
{
129
ScheduleObj::Instance()->ScheduleThread();
130
}
131
}
132
133
134
int Thread::SaveContext()
Callers
3
Loop
Method · 0.80
WaitNotify
Method · 0.80
KqueueSchedule
Method · 0.80
Calls
1
ScheduleThread
Method · 0.80
Tested by
no test coverage detected