├── .gitignore ├── LICENSE ├── README.md ├── ch02 ├── check_hardware_threads.cpp ├── move_semantics_for_thread.cpp ├── parallel_accumulate.cpp ├── raii_for_thread.cpp └── scoped_thread_using_move_semantics.cpp ├── ch03 ├── hierarchical_mutex.hpp ├── hierarchical_mutex_test.cpp ├── thread_safe_container_handler.hpp ├── thread_safe_container_handler_test.cpp ├── threadsafe_stack.hpp ├── threadsafe_stack_test.cpp ├── using_stdlock_to_avoid_deadlock.hpp └── using_stdlock_to_avoid_deadlock_test.cpp ├── ch04 ├── example_for_future.cpp ├── example_for_packaged_task.cpp ├── functional_quick_sort.cpp ├── functional_quick_sort_parallel_version.cpp ├── ordinary_queue.hpp ├── ordinary_queue_test.cpp ├── pass_arguments_to_std_async.cpp ├── spawn.cpp ├── test_for_condition_variable.cpp ├── threadsafe_queue.hpp └── threadsafe_queue_test.cpp └── include └── utilities.hpp /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/README.md -------------------------------------------------------------------------------- /ch02/check_hardware_threads.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch02/check_hardware_threads.cpp -------------------------------------------------------------------------------- /ch02/move_semantics_for_thread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch02/move_semantics_for_thread.cpp -------------------------------------------------------------------------------- /ch02/parallel_accumulate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch02/parallel_accumulate.cpp -------------------------------------------------------------------------------- /ch02/raii_for_thread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch02/raii_for_thread.cpp -------------------------------------------------------------------------------- /ch02/scoped_thread_using_move_semantics.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch02/scoped_thread_using_move_semantics.cpp -------------------------------------------------------------------------------- /ch03/hierarchical_mutex.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/hierarchical_mutex.hpp -------------------------------------------------------------------------------- /ch03/hierarchical_mutex_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/hierarchical_mutex_test.cpp -------------------------------------------------------------------------------- /ch03/thread_safe_container_handler.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/thread_safe_container_handler.hpp -------------------------------------------------------------------------------- /ch03/thread_safe_container_handler_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/thread_safe_container_handler_test.cpp -------------------------------------------------------------------------------- /ch03/threadsafe_stack.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/threadsafe_stack.hpp -------------------------------------------------------------------------------- /ch03/threadsafe_stack_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/threadsafe_stack_test.cpp -------------------------------------------------------------------------------- /ch03/using_stdlock_to_avoid_deadlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/using_stdlock_to_avoid_deadlock.hpp -------------------------------------------------------------------------------- /ch03/using_stdlock_to_avoid_deadlock_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch03/using_stdlock_to_avoid_deadlock_test.cpp -------------------------------------------------------------------------------- /ch04/example_for_future.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/example_for_future.cpp -------------------------------------------------------------------------------- /ch04/example_for_packaged_task.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/example_for_packaged_task.cpp -------------------------------------------------------------------------------- /ch04/functional_quick_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/functional_quick_sort.cpp -------------------------------------------------------------------------------- /ch04/functional_quick_sort_parallel_version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/functional_quick_sort_parallel_version.cpp -------------------------------------------------------------------------------- /ch04/ordinary_queue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/ordinary_queue.hpp -------------------------------------------------------------------------------- /ch04/ordinary_queue_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/ordinary_queue_test.cpp -------------------------------------------------------------------------------- /ch04/pass_arguments_to_std_async.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/pass_arguments_to_std_async.cpp -------------------------------------------------------------------------------- /ch04/spawn.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/spawn.cpp -------------------------------------------------------------------------------- /ch04/test_for_condition_variable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/test_for_condition_variable.cpp -------------------------------------------------------------------------------- /ch04/threadsafe_queue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/threadsafe_queue.hpp -------------------------------------------------------------------------------- /ch04/threadsafe_queue_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/ch04/threadsafe_queue_test.cpp -------------------------------------------------------------------------------- /include/utilities.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mooophy/Cpp-Concurrency/HEAD/include/utilities.hpp --------------------------------------------------------------------------------