C++ Builder 参考手册 ➙ System::Classes ➙ TThread ➙ Yield
头文件:#include <System.Classes.hpp>
命名空间:System::Classes
类:TThread
访问权限:public:
函数原型:
static void __fastcall Yield();
Yield 是 System::Classes::TThread 的静态成员函数,让 CPU 去执行其他线程。
参数:
无。
返回值:
无。
- 让 CPU 切换到其他线程执行,“谦让一下”,操作系统会按照线程执行的调度执行下一个线程。
参考:
- System::Classes::TThread::Sleep
- System::Classes::TThread::SpinWait
- System::Classes::TThread::Start
- System::Classes::TThread::Execute
- System::Classes::TThread::Started
- System::Classes::TThread::Terminated
- System::Classes::TThread::Finished
- System::Classes::TThread
- System::TObject
- VCL 类继承关系
C++ Builder 参考手册 ➙ System::Classes ➙ TThread ➙ Yield
网友评论