Xenomai 检测某一线程从Xenomai域切换到Linux域
来源:互联网 发布:linux脚本显示日期格式 编辑:程序博客网 时间:2024/06/08 17:31
Using the PTHREAD_WARNSW bit
This Xenomai feature enables run-time checks on a per-thread basis.
To enable these checks for the current thread use:
pthread_set_mode_np(0, PTHREAD_WARNSW);
As this call is specific to Xenomai (as indicated by the _np suffix), you maywant to surround it with a #ifdef __XENO__.
This will detect run-time errors and cause a SIGXCPU signal to be sent to thethread, you will find an example of a way to use this signal in the fileexamples/native/sigxcpu.c in Xenomai sources distribution.
另外:发SIGXCPU信号的处理在:xnshadow_relax->if (xnthread_test_state(thread, XNTRAPSW))->xnsynch_detect_claimed_relax(thread);
参考:
http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/skins/native/snippets/sigxcpu.c
http://comments.gmane.org/gmane.linux.real-time.xenomai.users/1179
- Xenomai 检测某一线程从Xenomai域切换到Linux域
- xenomai
- Xenomai Linux Exercises
- Xenomai 的模式切换浅析
- Xenomai 实时线程 select 测试
- xenomai 3.0.2 -任务切换《xnarch_switch_to》
- Installing Xenomai
- XENOMAI K2RTDEV
- Xenomai 应用
- Xenomai安装
- xenomai config
- Xenomai安装
- 编译 linux kernel & xenomai 2/3
- 构建Xenomai的Linux实时系统
- 解析Xenomai在实时Linux的应用
- LINUX操作系统嵌入Xenomai实时核
- xenomai 实时linux驱动编写实例
- 构建Xenomai的Linux实时系统
- [ACM] POJ 1068 Parencodings(模拟)
- OpenCV学习教程入门篇<一、介绍>
- android文件输出问题
- QtCreator 用纯代码编写应用程序与命令行编译
- thinkphp中的实例化模型的四种方法
- Xenomai 检测某一线程从Xenomai域切换到Linux域
- 使用xcode5做单元测试
- 高质量的PDF转换器
- 用命令和.dSYM 文件查找错误日志
- 分页导航
- 【Leetcode长征系列】Unique Binary Search Trees
- Net4.0的网站在IE10、IE11出现“__doPostBack未定义”的解决办法。
- leetcode: Jump Game II
- 1050. String Subtraction