码迷,mamicode.com
首页 >  
搜索关键字:signal    ( 1590个结果
简单生产消费者模型
import java.util.ArrayList; import java.util.List; public class ProduceAndConsume { public static final Object signal = new Object(); public static List<String> list = new ArrayList<String>(); ...
分类:其他好文   时间:2015-09-14 18:12:54    阅读次数:198
The Secret Mixed-Signal Life of PWM Peripherals
The Secret Mixed-Signal Life of PWM PeripheralsPulse-width modulation (PWM) peripherals have enjoyed a long association with microcontrollers and powe...
分类:其他好文   时间:2015-09-14 01:50:32    阅读次数:303
KL46 custom board SWD reset is never asserted - SWS Waveform
KL46 custom board SWD reset is never assertedHi everybody,I'm trying to program a custom board based on the KL46. However the reset signal for the SWD...
分类:其他好文   时间:2015-09-11 20:34:58    阅读次数:1241
__block在什么情况下使用
以下为转发 API Reference对__block变量修饰符有如下几处解释: //A?powerful?feature?of?blocks?is?that?they?can?modify? variables?in?the?same?lexical?scope.?You?signal?that?a?block...
分类:其他好文   时间:2015-09-08 12:44:34    阅读次数:183
linux 在线程中fork无法清除僵尸进程。
在某些线程库中,线程中通过fork创建的子进程无法通过wait或waitpid清理掉,原因是线程里面屏蔽的SIG_CHLD信号。可在线程主函数加入以下代码解决:signal(SIGCLD,SIG_IGN);/*don‘tneedtowaitchildprocess*/忽略这个信号后的作用是,告诉系统不关心子进程的执行返回值,系统可以..
分类:编程语言   时间:2015-09-08 07:19:49    阅读次数:178
signal(SIGPIPE, SIG_IGN)作用
signal(SIGPIPE, SIG_IGN)?? 当服务器close一个连接时,若client端接着发数据。 根据TCP 协议的规定,会收到一个RST响应,client再往这个服务器发送数据时,系统会发出一个SIGPIPE信号给进程,告诉进程这个连接...
分类:其他好文   时间:2015-09-07 16:59:36    阅读次数:138
Windows 多进程通信API总结
在一个大型的应用系统中,往往需要多个进程相互协作,进程间通信(IPC,Inter Process Communication)就显得比较重要了。在Linux系统中,有很多种IPC机制,比如说,信号(signal)、管道(pipe)、消息队列(message qu...
分类:Windows程序   时间:2015-09-07 14:33:40    阅读次数:495
断点捕获
在调试程序的时候,总是碰到crash的bug,而且一追踪就是一些汇编的代码,让人特别疑惑。一般情况下可以通过增加两天断点来解决此问题,方法介绍如下:基本上有错误分为以下几种类型:signal(SIGABRT, MySignalHandler);signal(SIGILL, MySignalHandl...
分类:其他好文   时间:2015-09-06 16:21:29    阅读次数:143
[转]UMeng的错误分析
今天在友盟的错误分析里面找到了一个这样的错误:Application received signal SIGSEGV (null) ( 0 CoreFoundation 0x2ef6dfeb + 154 1 libobjc.A.dylib 0x3971cccf objc_exception_thro...
分类:其他好文   时间:2015-09-04 11:02:20    阅读次数:161
如何理解这段代码:void (*signal (int sinno,void(*func)(int)))(int)
void (*signal (int sinno,void(*func)(int)))(int)先来看void(*func)(int) 这里的意思是声明一个函数指针func,它的参数类型为int,参数名可省略不写,当然(int x)也没错。声明一个函数指针signal,他有两个参数,int sin....
分类:其他好文   时间:2015-09-04 08:42:34    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!