摘要:
mutexlock和mutexlockguard class mutexlock:noncopyable { }; class mutexlockguard:noncopyable { }; 作用: 本文仅实现了最基本的mutexlock和mutexlockguard,放弃了muduo源码中的一大堆 阅读全文
posted @ 2020-08-22 23:56
WoodInEast
阅读(216)
评论(0)
推荐(0)
摘要:
exception class exception:public std::exception { }; 作用: 实现了一个异常类,继承于std::exception,主要用于实现打印线程调用栈信息. 成员变量: private: string m_message; string m_stack; 阅读全文
posted @ 2020-08-22 22:47
WoodInEast
阅读(219)
评论(0)
推荐(0)
摘要:
CurrentThread 作用: CurrentThread并不是一个类,而是一个命名空间,在mymuduo内部,目的是提供对于当前线程的管理操作。 内部变量: __thread int t_cachedTid; //当前线程ID __thread char t_tidString[32];//当 阅读全文
posted @ 2020-08-22 18:42
WoodInEast
阅读(275)
评论(0)
推荐(0)
摘要:
AtomicIntegerT template<typename T> class atomicTntergerT:public noncopyable { }; 作用: 与std::aotmic<int> 类似,主要实现对 int32_t 和 int64_t 类型的原子操作。 在内部并不是使用互斥 阅读全文
posted @ 2020-08-22 15:10
WoodInEast
阅读(149)
评论(0)
推荐(0)
摘要:
timestamp class timestamp:public mymuduo::copyable, public boost::equality_comparable<timestamp>, public boost::less_than_comparable<timestamp> { }; 作 阅读全文
posted @ 2020-08-22 12:54
WoodInEast
阅读(295)
评论(0)
推荐(0)

浙公网安备 33010602011771号