1. 头文件
    • #include<thread>
    • #include<mutex>
    • #include<condition_variable>
  2. 定义线程方法:
    • std :: thread <线程名字> (传入函数指针即:函数名字)
    • eg:std :: thread matching_thread(consume_tack);