a thread switching problem about using ucontext.h in a user-level thread implementation

后端 未结 0 1974
眼角桃花
眼角桃花 2020-12-29 02:24
void Mythread::threadSchedule(int n)
{
    if(threadMap_.size() > 1)
    {
        int lastId = current_;  
        if(current_ != (--threadMap_.end())->first)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题