这个函数创建一个手工重置或自动重置的事件对象,同时还要设置改对象的初始状态。
This function creates a manual-reset or auto-reset event object and also sets the initial state of the object.
通知还可以用于触发事件,如对于超过设置阀值(比如内存或者磁盘空间等资源不足)的状态改变做出反应。
Notification can also be used to trigger events, such as reacting to a state change that surpasses a given threshold, as in the case of dwindling resources like memory or disk space.
对一个已经设置为有信号状态的事件对象再次执行该函数是无效的。
对事件对象调用的等待函数会阻塞调用线程,直到其状态被设置为有信号状态为止。
The wait function on the event object blocks the calling thread until its state is set to signaled state.
尤其是,它将设置一个全局计数器,以对处于活动状态的事件处理程序进行计数;另外,还要设置一个变量,以在列表中保存事件处理程序的结果。
Especially, it sets up a global counter that counts the number of active event handlers as well as a variable that holds the results of the event handlers in a list.
FEMMDB拾取消息,更新数据库中的失败事件,并将状态设置为“失败”。
The FEM MDB picks up the message, updates the failed event in the database, and sets status to Failed.
bManualReset是一个标记,如果该值为TRUE,就会创建一个手工重置的事件,应该显式地调用ResetEvent,将事件对象的状态设置为无信号状态。
BManualReset is a flag and if it is TRUE, a manual-reset event is created and ResetEvent should be called explicitly to set the state to non-signaled.
要等待某个事件,则可以使用 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.
在Windows中,事件对象是那些需要使用SetEvent函数显式地将其状态设置为有信号状态的同步对象。
In Windows, event objects are one of the synchronization objects whose state needs to be explicitly set to signaled using the SetEvent function. Event objects come in two types.
函数SetEvent()用来将事件对象的状态设置为有信号状态。
The function SetEvent() is used to set the state of the event object to signaled state.
在手工重置事件(manual reset event)中,对象的状态会一直维持为有信号状态,直到使用ResetEvent函数显式地重新设置它为止。
In the manual reset event, the state of the object remains signaled until explicitly reset using the ResetEvent function.
要将某个事件的状态修改为有信号状态,可以使用semop,并将sem_op的值设置为1。
当状态改变时,所有的调用设置都被保存,所有暂停的事件都被清除。
When state changes, all callback Settings are retained and all pending events are cleared.
如果用户将应用程序设置为联机状态,事件处理程序会尝试重新验证用户。
If the user sets the application to the online state, the event handler attempts to revalidate the user.
获取或设置值,该值指示是应立即引发事件,还是工作流在引发事件前应处于空闲状态。
Gets or sets a value that indicates whether the event should be raised immediately, or if the workflow should go idle before raising the event.
获取或设置值,该值指示是应立即引发事件,还是工作流在引发事件前应处于空闲状态。
Gets or sets a value that indicates whether the event should be raised immediately, or if the workflow should go idle before raising the event.
应用推荐