• 把插槽连接信号调用信号基本例子

    This example is a basic example of connecting a slot to a signal and then invoking the signal.

    youdao

  • 然后使用18 (SIGCHLD)来调用信号处理程序,确认进程退出并且进程返回sleep (60)。

    The signal handler is called with a value of 18 (SIGCHLD), the child's exit is acknowledged, and the parent goes back to its sleep (60).

    youdao

  • 调用这个方法等待需要信号某个事件完成,等待指定段时间

    This method is called to wait for an event completion on the indicated semaphore, with a specified time.

    youdao

  • 事件对象调用等待函数会阻塞调用线程直到状态设置信号状态为止。

    The wait function on the event object blocks the calling thread until its state is set to signaled state.

    youdao

  • 然后循环查询自己的信号处理程序之间的内部映射叫做回调调用注册到指定对象指定信号的处理程序。

    The main loop then looks through its internal mapping table between its signals and handlers, also called callbacks, and calls the handlers registered for the given signal on the given object.

    youdao

  • 导致第三问题信号处理程序接收信号程序调用已包装调用

    This led to a third problem: Programs that take signals for which the signal handlers invoke wrapped calls.

    youdao

  • 中,控制器FAILURE信号发送给协调器从而反转顺序调用补偿活动

    In this case the controller sends out a FAILURE signal to the coordinator, thus invoking the compensatory activities in reverse order.

    youdao

  • 如果控制器收到来自活动SUCCESS信号会发送信号协调器组件(例中是PROPAGATE),从而调用一个活动。

    If the controller receives a SUCCESS signal from an activity, it sends a signal to the coordinator component (in this case PROPAGATE), thus invoking the next activity.

    youdao

  • 或者调用正在处理全局数据结构某个函数而在信号处理器中调用同一个函数。

    Or, you call some function that was in the middle of the manipulation of the global data structure and you call the same function from the signal handler.

    youdao

  • 如果调用线程并不拥有这个互斥信号量,那么这个函数执行将会失败

    If the calling thread has no ownership of this mutex, this function fails.

    youdao

  • f跟踪通过forkvfork创建所有子进程,跟踪输出包括它们的信号错误系统调用

    F follows all children created by fork or vfork and includes their signals, faults, and system calls in the trace output.

    youdao

  • 如果进程正在使用malloc分配额外的内存时,通过信号处理器调用 malloc,那会怎样?

    What if the process was in the middle of allocating additional memory on its heap using malloc, and you call malloc from the signal handler?

    youdao

  • 相反服务器可以通过调用Work对象release方法资源适配器发信号

    Instead, the server can signal to the resource adapter by calling the release method on the Work object.

    youdao

  • Linux使用pthread_condition_init调用当前进程创建信号对象,在其中维持一个最大值之间的计数值。

    Linux USES the pthread_condition_init call to create a semaphore object within the current process that maintains a count between zero and a maximum value.

    youdao

  • truss生成跟踪信息,包括进程执行系统调用收到信号它导致的机器错误

    The command truss produces a trace of the system calls it performs, the signals it receives, and the machine faults it incurs.

    youdao

  • 此时write系统调用进程接收到的SIGBUS信号中断因为当前进程访问非法内存地址

    Your write system call will be interrupted by the bus error signal SIGBUS, because you performed a bad memory access.

    youdao

  • 每当进程接收到某个已处理信号时,调用通过sigset分配函数

    Whenever a handled signal is received by a process, the function assigned through sigset is called.

    youdao

  • 函数调用sigsuspend通过重置信号掩码使进程休眠单一原子操作解决一问题

    The function call sigsuspend resolves this problem by resetting the signal mask and putting the process to sleep in a single atomic operation.

    youdao

  • 第 2种情况中,我们使用Linux 中的strace实用程序它能够跟踪系统调用信号从而找出程序发生错误的地方。

    Scenario 2 uses the strace utility in Linux that enables the tracing of system calls and signals to identify where a program is failing.

    youdao

  • 等待某个事件,则可以使用 semop()函数,并将 sem_op 的设置-1这样就可以阻塞调用进程直到变为信号状态为止。

    To wait on an event, semop() function is used with sem_op value as -1 thus blocking the calling process until it is signaled.

    youdao

  • 如果不想调用原始方法那么可以插槽disconnect信号例如通过logger . show之前添加以下行。

    If you don't want the original method to be called, you can disconnect the signal from the slot, for instance by adding the following line before the logger.show line.

    youdao

  • 对于SIGCHLD信号应用程序必须调用wait (3c)函数等待进程退出

    For the SIGCHLD signal, the application must call the wait (3c) function to wait for the child process to exit.

    youdao

  • l利用事件——异步调用完成时设定信号

    Using events - a signal is set as soon as the asynchronous call is finished.

    youdao

  • Linux中,可以调用相同semget打开某个信号量,不过此时semflg0int semget (key,nsems, 0)。

    In Linux, the same semget call is used to open the semaphore with 0 as the value for the semflg: int semget (key, nsems, 0). In this code.

    youdao

  • 当选选项delegate调用CDI目标使用信号相对应IC DISignal恢复执行

    When this option is selected, the delegate calls on the CDI target to resume its execution with the ICDISignal corresponding to the selected signal.

    youdao

  • 假定信号close系统调用设置errno变量返回之前极小时间片段内生成

    Suppose a signal is generated during the very small time gap between setting the errno variable by the close system call and its return.

    youdao

  • 是因为只有一些系统调用可以安全地调用内部信号:只有可重入的(re -entrant)或者信号中断调用才可以被安全地调用

    That's because only a few system calls can be safely called inside signals. Only calls that are re-entrant or not interruptible by signals can be called safely.

    youdao

  • 是因为只有一些系统调用可以安全地调用内部信号:只有可重入的(re -entrant)或者信号中断调用才可以被安全地调用

    That's because only a few system calls can be safely called inside signals. Only calls that are re-entrant or not interruptible by signals can be called safely.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定