33 #ifndef EMANETHREADUTILS_HEADER_ 34 #define EMANETHREADUTILS_HEADER_ 46 std::thread::native_handle_type handle{thread.native_handle()};
54 iRet = pthread_getschedparam(handle,&iPolicy,¶m);
58 iRet = pthread_setschedprio(handle,param.sched_priority+1);
67 return pthread_cancel(thread.native_handle());
72 #endif // EMANETHREADUTILS_HEADER_ int cancel(std::thread &thread)
int elevate(std::thread &thread)