📄 noschedule.cpp
字号:
#ifndef NO_SCHEDULE#define NO_SCHEDULE#include "gettask.cpp"#include "gethandler.cpp"void ttNoSchedule(char* name) { // can only be called during initialization phase if (!rtsys->initialize) { MEX_ERROR("ttNoSchedule: Can only be called from the init-function!"); return; } Task* task = getTask(name); Handler* handler = getHandler(name); if (task == NULL && handler == NULL) { char buf[200]; sprintf(buf, "ttNoSchedule: Non-existent task or handler '%s'\n", name); MEX_ERROR(buf); } if (task != NULL) { task->display = false; rtsys->nbrOfSchedTasks--; } if (handler != NULL) { handler->display = false; rtsys->nbrOfSchedHandlers--; }}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -