Higher prio for main and write thread

This commit is contained in:
Anders Sandstrom
2022-01-28 10:05:48 +01:00
parent 227e03adf5
commit 6146411728
2 changed files with 1267 additions and 1034 deletions

View File

@@ -159,13 +159,13 @@ ecmcGrbl::ecmcGrbl(char* configStr,
// Create worker thread for main grbl loop
std::string threadname = "ecmc.grbl.main";
if(epicsThreadCreate(threadname.c_str(), 0, 32768, f_worker_main, this) == NULL) {
if(epicsThreadCreate(threadname.c_str(), epicsThreadPriorityMedium, 32768, f_worker_main, this) == NULL) {
throw std::runtime_error("GRBL: ERROR: Failed create worker thread for main().");
}
// Create worker thread for write socket
threadname = "ecmc.grbl.write";
if(epicsThreadCreate(threadname.c_str(), 0, 32768, f_worker_write, this) == NULL) {
if(epicsThreadCreate(threadname.c_str(), epicsThreadPriorityLow, 32768, f_worker_write, this) == NULL) {
throw std::runtime_error("GRBL: ERROR: Failed create worker thread for write().");
}

File diff suppressed because it is too large Load Diff