完成变量如果在内核中一个任务需要发出信号通知另一个任务发生了某个特定事件,利用完成变量(completion variable)是两个任务得以同步的简单方法。完成变量由结构completion表示,在中。
基于40个网页-相关网页
完成变量和使用信息的设置后,SimpleLinkExtor模块将处理指定的HTML文件。
After setting up the variables and the usage information, the specified HTML file is processed by the SimpleLinkExtor module.
下列代码显示了一个简单的展示变量内容的完成消息。
The code below shows a simple completion message displaying a variable's content.
完成了基本变量声明和子例程后,程序将继续进行主程序循环,如下所示。
With the base variable declarations and subroutine complete, the program moves on to the main program loop, shown below.
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
And so we saw that as well, the last piece we had here is the ability to create variables, which have their own values, and that's done using an assignment statement.
我们也可以看到,这里我们最后的是,创建了一些变量,这些变量都有自己的值,这是运用了赋值声明来完成的。
But notice unlike a for loop, if you want to declare a variable or increment or decrement to variable, you've got to do that yourself.
但请注意不像for循环,如果你想声明一个变量,或者变大或变小一个变量,你需要自己完成。
应用推荐