- main() 在主线程监听用户输入的命令;
- 扔给子线程做任务lib.rs do_command();
- 主线程和子线程通过channel来告知是否消息,通过静态data存放命令;
- 输入“exit”,则两个线程退出;
-
Notifications
You must be signed in to change notification settings - Fork 0
Water-bamboo/hello-rust
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published