带有命令行开关的事件循环。
例如,事件循环,多线程,GUI设计,等等。
For example, the events loop, multithreading, GUI design, etc.
当命令行参数不够用时,下一步是编写一个事件循环。
When command-line arguments are not enough, the next step is to write an event loop.
唯一的区别是它要求开发者显式地书写事件循环代码。
The only difference is that it requires the developers to explicitly write the event looping codes.
用于修饰或说明一直重复同样的事件循环的任何现象。
Pertaining to any phenomenon that consistently repeats the same cycle of events.
这里,我将窗口小部件设置为可视的,然后启动GTK +主事件循环。
Here I set the widgets to be visible, and start the GTK + main event loop.
这里所发生的是这个事件在事件循环机制作用下所产生的状态变化。
What's going on here is a side effect of how this event works under the hood.
本质上,这个策略是创建带回调的一串窗口小部件,然后进入一个主事件循环。
Essentially, the strategy is to create a bunch of widgets with callbacks, then enter a main event loop.
具有循环状态和可能拥有事件循环的应用程序或其一部分在概念上以业务状态机表示。
Applications, or part thereof, which have recurrent states and can have event loops, are ideally represented by business state machines.
通常,这种应用程序被分为若干个事件循环,每个循环都有自己独有的线程。
Typically, such an application is split into several event loops, each residing in its own thread.
将长时间的计算从主事件循环线程移到别的线程中,从而提高用户接口的响应速度。
Multithreading your application improves the responsiveness of your user interface by moving long calculations into separate threads and away from your main event loop.
该脚本扩展了带开关的简单事件循环,将Parse:RecDescent用作解析引擎。
This script extends the simple event loop with switches to use Parse: : RecDescent as the parsing engine.
应用程序的“事件循环”会给这个聚焦的对象发送键盘键盘动作、鼠标事件和菜单选择等行为。
The application's "event loop" will send keyboard actions, mouse events and menu selections to this focus object.
最后要做的一件事,就是激活poa,使客户机请求开始排队,并强制服务器输入其事件循环,以接收这些传入的请求。
The last thing we need to do is activate our POA to start queuing client requests and force the server to enter its event loop to receive those incoming requests.
创建所需的网络监听套接字,注册在执行期间要调用的事件,然后启动主事件循环,让libev处理过程的其余部分。
You create the necessary network listening sockets, register the events to be called during execution, and then start the main event loop with the libev handling the rest of the process.
请注意,很容易理解和修改这个扩展,而且该扩展可以与前面的非解析示例一样出色地完成工作(请参阅带命令行开关的事件循环)。
Note that the extension is easy to understand and modify, and that it can do the job just as well as the previous, non-parsing example (see the Event loop with command-line switches).
它以事件循环,多线程,动态载入以及对象系统的方式为C语言提供了数据结构处理,轻便封装,以及运行时功能的接口。
It provides data structure handling for c, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.
main函数创建一个Glib事件循环,获得会话总线的一个连接,并将D -BUS事件处理集成到Glib事件循环之中。
The main function creates a Glib event loop, gets a connection to the session bus, and integrates the D-BUS event handling into the Glib event loop.
如果你看到一个文件,得到改变每20 -30秒左右,只是调查你的事件循环的变化,用一个定时器来确保你不太经常的调查。
If you're watching a single file that gets changed every 20-30 seconds or so, just poll for changes in your event loop, with a timer to make sure you don't poll too often.
其可能造成的结果是游戏玩家在游戏事件循环的某一部分按下了发射键,而在另一部分却松开了它。所以必须在同一处进行采样与读入输入。
It's possible that the player might have the fire button down in one part of the event loop and not in another, so you must sample at the same point you read the input for the game normally.
其中一个线程然后会对运行文件调用SPU_RUNioctl系统调用,而其他线程则可以对邮箱文件和其他可能的文件描述符执行一个事件循环。
One of the threads then calls the SPU_RUN ioctl on the run file, while the other runs in an event loop on the mailbox files and potentially other file descriptors.
现在,通过在简单事件循环和简单用户界面的UI功能基础上再增加一些功能,我们将具体展示Parse:RecDescent文法所具有的特定能力。
We will now showcase specific abilities of the Parse: : RecDescent grammar by adding on to the UI features from a simple event loop and a simple user interface.
应用程序的主框架只由四个步骤组成:(1)创建一个应用程序;(2)创建一个或多个窗口;(3)在窗口中添加一些窗口小部件;(4)调用app. run事件循环。
The skeleton of an application consists of just four steps: (1) create an application; (2) create one or more Windows; (3) add some widgets to the Windows; (4) call the app.run event-loop.
预期,GNOME将使用GObject创建包装d -BUS的包装器(实际上这些已经部分存在了,将D - BUS集成入它们的事件循环),KDE将使用Qt创建类似的包装器。
It is expected that GNOME will create wrappers around D-BUS using GObject (indeed these partially exist, integrating D-BUS into their event loop), and that KDE will create similar wrappers using Qt.
然后它声明愿意当具有com. burtonini . dbus . signal接口的信号被发送时得到通知,将signal_filter设置为通知函数,然后进入事件循环。
Then it states that it would like to be notified when signals with the com.burtonini.dbus.Signal interface are sent, sets signal_filter as the notification function, and enters the event loop.
不同于循环时间与不可逆时间,壮观时间是一种制造伪事件的积木。
Different from the circular time and the irreversible time, the spectacular time is a kind of toy bricks producing pseudo-events.
答:当流程中大多数步骤都顺序执行,而只有数量有限的循环或事件处理程序时,应该使用bpel流程。
Answer: You should use the BPEL process when most steps in the process are sequential, with only limited number of loops or event handlers.
在循环之后,定义接收活动,该活动将等待最后一个事件处理程序实例调用。
After the loop define a receive activity that waits until it is invoked by the last event handler.
循环和事件处理程序通常意味着控制流回退,这表明状态机是一种更合适的实现方法。
Loops and event handlers usually imply that the control flow is going back, which suggests that state machine is a more suitable implementation.
这些项目的状态由事件驱动,而且通常具有循环逻辑(返回以前的状态)。
These are items that have states that are driven by events, and typically have loop-based logic (returning to previous states).
应用推荐