Use the boost. Thread library in windows and Symbian

Source: Internet
Author: User

In general, boost. thread can run well in a PC environment (such as windows and xnix), while the boost library does not yet specify which mobile platform to support. Recently, I have tested whether the boost. Thread library can work on certain mobile platforms (wince, Symbian. The conclusion is that it can also be used. The following is a brief description:

Test environment:
1) WinCE (wm5.0 PPC): boost1.37.0 (Latest Version)
2) Symbian (s60 3rd MR + openc/C ++ SDK): boost1.34.1 (previously, the boost library used in openc/C ++ was 1.35.0)

> Why are different boost versions used in the test?
In Symbian, I also tried boost. Thread for version 1.37.0.Source codeBut gave up. The same is true for version 1.35.0. The last version is 1.34.1.

> The boost library already exists in openc/C ++ SDK. Do you want to download boost1.34.1?
It seems that only the header file is available. The boost. Thread library needs to be compiled to implement the libraryCodeIn the lib directory.

Test object:
The test examples are built-in examples under Boost. Thread: monitor. cpp

Test results:
Both of them passed smoothly. Among them, Windows only tested and passed in the simulator, and Symbian passed smoothly in both the simulator and the real machine environment.

Conclusion
: When developing cross-platform C ++ multi-threaded applications, the boost. Thread library is a good choice.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.