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

update v2.2.1

上级 0a7ea0cd
......@@ -31,7 +31,7 @@
#endif // _WIN32
#if defined ETERFREE
using ThreadPool = eterfree::ThreadPool;
using ThreadPool = Eterfree::ThreadPool;
#elif defined BOOST
using ThreadPool = boost::threadpool::thread_pool<>;
#endif
......
......@@ -7,7 +7,7 @@ int main()
{
using std::cout, std::boolalpha, std::endl;
eterfree::Thread thread;
Eterfree::Thread thread;
cout << thread.getID() << endl;
thread.configure([] \
......
......@@ -43,7 +43,7 @@ int main()
print(threadPool);
proxy.pushTask([] \
{ std::cout << "eterfree::ThreadPool" << std::endl; });
{ std::cout << "Eterfree::ThreadPool" << std::endl; });
sleep_for(seconds(1));
print(threadPool);
......
......@@ -20,9 +20,9 @@
"Instead, use the name: " STRING(signature) ".")]]
// 自定义名称空间
#define ETERFREE_SPACE_BEGIN namespace eterfree {
#define ETERFREE_SPACE_BEGIN namespace Eterfree {
#define ETERFREE_SPACE_END }
#define USING_ETERFREE_SPACE using namespace eterfree;
#define USING_ETERFREE_SPACE using namespace Eterfree;
ETERFREE_SPACE_BEGIN
......
#include "Common.hpp"
#pragma once
#include "Common.hpp"
namespace eterfree = Eterfree;
#include "Queue.hpp"
#pragma once
#include "Queue.hpp"
#include "DoubleQueue.hpp"
#pragma once
#include "DoubleQueue.hpp"
ETERFREE_SPACE_BEGIN
......
#include "Core.hpp"
#pragma once
#include "Core.hpp"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册