filmov
tv
2D3D-#043 - How to Prevent Resource Leak, Get Thread Affinity Mask

Показать описание
We will also learn how to use std::thread::native_handle().
std::unique_ptr 04 - Prevent Resource Leak With std::unique ptr
2D3D-#041 - Conventional Multithreading vs. Modern Task-Oriented Programming
Windows API 17 - Processor (CPU) Information and Bitwise Operation
Pro TBB, Page 357 - Chapter 13
Creating Thread-to-Core and Task-to-Thread Affinity
Pro TBB
Download Pro TBB Source Code
1. GetCurrentProcess function
2. GetProcessAffinityMask function
3. CreateThread function
4. ThreadProc callback function
5. SetThreadAffinityMask function
6. ResumeThread function
7. WaitForSingleObject function
8. CloseHandle function
9. GetCurrentProcessorNumber function
10. DuplicateHandle function
Prerequisites:
Qt-OpenCL#00 - Installation of Qt, Intel TBB, MSVC++, OpenCL and SYCL on Windows
Qt-OpenCL#03 - Install Vulkan 1.30 on Windows for Use with Qt 5.14 and Microsoft Visual Studio 2017
2D3D-#042 - How to Set Thread Affinity (Windows API), How to Retrieve Processor Configuration
2D3D-#041 - Conventional Multithreading vs. Modern Task-Oriented Programming
2D3D-#040 - Global Thread Pool and Task Arenas
2D3D-#039 - Controlling the Number of Threads Used for Execution
2D3D-#038 - indexed set, indexed map, and indexed binary tree
Download Source Code:
Episode 43
Episode 42
Episode 40
Episode 39
Episode 38
Episode 37
std::unique_ptr 04 - Prevent Resource Leak With std::unique ptr
2D3D-#041 - Conventional Multithreading vs. Modern Task-Oriented Programming
Windows API 17 - Processor (CPU) Information and Bitwise Operation
Pro TBB, Page 357 - Chapter 13
Creating Thread-to-Core and Task-to-Thread Affinity
Pro TBB
Download Pro TBB Source Code
1. GetCurrentProcess function
2. GetProcessAffinityMask function
3. CreateThread function
4. ThreadProc callback function
5. SetThreadAffinityMask function
6. ResumeThread function
7. WaitForSingleObject function
8. CloseHandle function
9. GetCurrentProcessorNumber function
10. DuplicateHandle function
Prerequisites:
Qt-OpenCL#00 - Installation of Qt, Intel TBB, MSVC++, OpenCL and SYCL on Windows
Qt-OpenCL#03 - Install Vulkan 1.30 on Windows for Use with Qt 5.14 and Microsoft Visual Studio 2017
2D3D-#042 - How to Set Thread Affinity (Windows API), How to Retrieve Processor Configuration
2D3D-#041 - Conventional Multithreading vs. Modern Task-Oriented Programming
2D3D-#040 - Global Thread Pool and Task Arenas
2D3D-#039 - Controlling the Number of Threads Used for Execution
2D3D-#038 - indexed set, indexed map, and indexed binary tree
Download Source Code:
Episode 43
Episode 42
Episode 40
Episode 39
Episode 38
Episode 37