提交 33b8f97d 编写于 作者: 独孤过's avatar 独孤过

update test

上级 ff4ff88d
......@@ -9,6 +9,7 @@
#include <threadpool/threadpool.hpp>
#endif
#include <cstdlib>
#include <utility>
#include <chrono>
#include <iostream>
......@@ -121,5 +122,5 @@ int main()
terminate(std::move(threadPool));
cout << "任务总数:" << load() << endl;
return 0;
return EXIT_SUCCESS;
}
#include "ThreadPool.h"
#include "Condition.hpp"
#include <cstdlib>
#include <chrono>
#include <iostream>
#include <atomic>
......@@ -47,5 +48,5 @@ int main()
valid.store(false, std::memory_order_relaxed);
condition.exit();
return 0;
return EXIT_SUCCESS;
}
#include "Thread.h"
#include <cstdlib>
#include <iostream>
ETERFREE_SPACE
......@@ -20,5 +21,5 @@ int main()
thread.configure([] { cout << "solifree" << endl; }, nullptr);
cout << boolalpha << thread.notify() << endl;
return 0;
return EXIT_SUCCESS;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册