如果您过去曾经编写过事件驱动的程序,那么我认为您会发现,对于设置显式事件处理循环这一常见做法,使用信号是一个令人耳目一新的变化。
If you've ever done any event-driven programming in the past, I think you'll find signals to be a refreshing change from the common practice of setting up an explicit event processing loop.
这可以通过在信号处理程序代码中设置一个全局标志并在完成关键部分的代码之后检查这个标志来实现。
This can be achieved by setting a global flag in the handler code and checking for the flag after completion of the critical part.
设置 override_signal_handling 可以确保该程序终止并进行核心转储,即使应用程序已经对这些信号进行了处理。
Setting override_signal_handling ensures that the program terminates and core, even if these signals have been handled by the application.
在一个信号处理器内部,您通常应该做的一件事是,设置一个将在以后处理的全局标记。
The only thing you should normally do inside a signal handler is set a global flag that will be processed later.
但是您最好只在一个信号处理器中设置标记(别的什么都不做),这胜过尝试创建复杂的处理器。
But you're better off setting flags — and nothing else — in a signal handler, as opposed to trying to create sophisticated handlers.
为了获得理想的核心文件,可能需要通过设置环境变量来禁用MQ的那些信号处理程序。
To get a good core file, MQ might need to disable those signal handlers by setting the environment variables.
本系统可以实现多路温度信号采集与显示,可以使用按键来设置温度限定值,通过进行温度数据的运算处理,发出控制信号达到控制蜂鸣器和继电器的目的。
The system achieves multi-channel temperature signal acquisition and control. Temperature limit is set by keyboard. The buzzer and relay are controlled by MCU.
在这样处理方式下,write系统调用返回被信号中断前已写的字节数,并将errno全局变量设置为成功。
By doing this the write system call returns with the number of bytes it wrote before it got interrupted and the errno set to success.
第一种方式是为SIGBUS信号设置信号处理程序,并在处理程序中简单的执行return语句。
The first way is to install a signal handler for the SIGBUS signal, and then simply call return in the handler.
高功率处理能力(300 0瓦特加)在太区继电器- 26允许简单的设置和没有信号电缆复杂的路由操作。
The high power handling (3000 watts plus) relays in the WPR-26 allow simple set up and operation without the complex routing of signal cables.
一种削波状态显示方法与削波状态显示装置,该方法能够快速识别一削波点并且改变信号处理的设置。
A clip state display method which is capable of quickly identifying a clipping point and changing Settings of signal processing.
无法设置信号处理程序。
FV - O SR软件的专利技术和先进的信号处理控制特定的硬件设置。
The proprietary technology of FV-OSR software controls specific hardware Settings and advanced signal processing.
论文采用模块化的设计思路对模拟器软体进行了开发,模拟软体能完成场景设置、脉冲描述字生成、多信号脉冲排序、脉冲重叠处理等功能。
The simulation software is designed based on modularization method. it can fulfill the function of scene setting, PDW production, pulse sort and overlapping disposal.
该系统利用软件实现了智能化的传感器设置、实时采集时的时域信号、频域信号同时显示和多种数据处理分析的功能。
The system implements intellectualized transducer setting signal synchronous display in time and frequency domain as well as other multiple signal processing functions.
控制电路采用微处理器AT89S52作为主控制芯片,矩阵按键和液晶显示构成操作平台,可设置射频信号的频率;
Console is based on micro control chip AT89S52, LCD and button matrix composition platform to set the frequency of the transmitted signals;
它具有一个全数字化,较宽的动态范围,数字信号处理器(dsp)的作业系统,无需手动设置的监测范围。
It features an all-digital, wide dynamic range, digital signal processor (DSP) operating system, eliminating the need to manually set monitoring ranges.
此数据结构的特点如下:将复数和矩阵设置为基本的数据形式,便于雷达信号处理算法的实现;
The main characters of this data structure include that: Set the complex data and matrix as the basic data unit, which can implement the algorithms of signal processing more conveniently;
本实用新型通过设置能将鼠标左键和右键同时单击的信号转换为双击信号的鼠标处理器。
The utility model is provided with a mouse processor which can change the single-stroke signal made by the left key and the right key simultaneously into the dual-stroke signal.
本实用新型通过设置能将鼠标左键和右键同时单击的信号转换为双击信号的鼠标处理器。
The utility model is provided with a mouse processor which can change the single-stroke signal made by the left key and the right key simultaneously into the dual-stroke signal.
应用推荐