📄 readme.txt
字号:
Description:
------------
This example demonstrates the difference between a thread's Create function
and its construction function. The main difference is that a thread should
new (malloc) all resources in the constructor, delete (free) them in the
destructor, and check to make sure they were all new (malloc)'ed okay in
the create function.
Files:
------
factory.cpp
factory.h
A thread that just creates many worker threads, and prints the number of
threads created at the end of its Run function.
worker.cpp
worker.h
A thread that when constructed tries to create more space than might be
available. If the construction fails, the create function tests that
the array could be created. When it can't it shows the fail condition.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -