码迷,mamicode.com
首页 >  
搜索关键字:signal    ( 1590个结果
pthread_cond_wait和pthread_cond_signal以及互斥变量的使用情况
#include #include #include #include #define BUFFER_SIZE 21 //初始化存储空间的大小#define END_FLAG (-1)//用于退出循环struct Products{int buffer[BUFFER_SIZE];//存储空间pthr...
分类:其他好文   时间:2015-08-26 01:48:16    阅读次数:221
linux daemon代码完全注释
#include?<unistd.h> #include?<signal.h> #include?<sys/param.h> #include?<sys/types.h> #include?<sys/stat.h> void?init_daemon(void) {???????? ????int?pid;???????? ????...
分类:系统相关   时间:2015-08-26 00:17:59    阅读次数:212
Serial Wire Debug (SWD) Interface -- PSoc5
PSoC 5 supports programming through the serial wire debug (SWD) interface.There are two signals in SWD interface: data signal (SWDIO) and a clock for ...
分类:其他好文   时间:2015-08-25 13:36:38    阅读次数:2537
vivado debug
VHDL : signal wv_data_flash : std_logic_vector(63 downto 0) ; attribute mark_debug: string attribute mark_debug of wv_data_flash : s...
分类:其他好文   时间:2015-08-25 13:19:18    阅读次数:472
Libevent源码分析-timer和signal处理
libevent中实现定时器和信号的方式...
分类:其他好文   时间:2015-08-21 23:20:20    阅读次数:322
Renesas M16C/6X -- Simple PWM Signal Generation Using DMA
1. RequirementsTo generate a PWM output, we need to create a train of pulses with constant period and variable duty cycle.The dutycycle, being the mod...
分类:其他好文   时间:2015-08-21 18:44:27    阅读次数:210
Signal and Slots
Signal and Slots 用于对象之间通信。 它是 Qt 的核心特性之一, 并且也是Qt 与其它框架差别最大的部分。概述 在GUI编程中, 如果我们改变了一个控件, 我们可能想其它控件知道; 换言之, 我们希望任何类型的 Object 能够彼此通信。 一些Tookits使用回调函数来实现通信...
分类:其他好文   时间:2015-08-20 12:44:55    阅读次数:112
The Meta-Object System
The Meta-Object SystemMeta-Object 提供了用于类间通信的signal/slot, 运行时类型信息、以及动态属性系统。Meta-Object 的使用基于以下三个点:QObject 提供了可以使用MetaObject 的一个公共基类。在类的声明里加入Q_OBJECT 宏,...
分类:Web程序   时间:2015-08-20 12:20:58    阅读次数:141
关于信号中断与慢系统调用的深度发现
这段时间在看Unix网络编程卷1,在5.9节处理SIGCHLD信号,关于处理僵死进程第四步如下写道:信号是在父进程阻塞于慢系统调用(accept)时由父进程捕获的,内核就会使慢系统调用(accept)返回一个EINTR错误。 看到上面那段落的时候,想到我前段时间写网络服务器遇到的问题,链接地址:http://bbs.csdn.net/topics/391032981,其实里面也有我关于这方面问题的困惑。 总结一下我论坛的那个问题,其实我无论如何是不能通过信号中断,测试epoll_wait出错errno置EI...
分类:其他好文   时间:2015-08-19 13:31:33    阅读次数:186
关于<signal.h>中SIG_ERR、SIG_DEL、SIG_IGN定义的问题
#define SIG_ERR (void (*)())-1 #define SIG_DEL (void (*)())0 #define SIG_IGN (void (*)())1为什么不是#define SIG_ERR (void (*) (int))-1 呢?在网上搜索之后找到答案: 在C里这样的代码是可以的void fun(); int main() { fun(1,2);...
分类:其他好文   时间:2015-08-17 23:36:49    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!