11 2015 档案

摘要:std::mutex m; std::condition_variable cond; int flag = 0; constexpr int kLoopTimes = 10; void foo(int id){ for (int i = 0; i != kLoopTimes; ++i){ std: 阅读全文
posted @ 2015-11-19 19:40 wu_overflow 阅读(401) 评论(0) 推荐(0)
摘要:安装方法十分简单,打开 mysql 后输入 \. .../.../employees.sql; 就可以。吗?然后就遇到问题了,第一个是这样,我输入上面的代码之后,给我的是这个:Access denied for user为啥呢? 因为没有以 root 的身份登录,只需要这样登录就可以; mysql ... 阅读全文
posted @ 2015-11-13 16:27 wu_overflow 阅读(252) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-12 19:23 wu_overflow 阅读(585) 评论(0) 推荐(0)
摘要:templateIterator parallelFind(Iterator first, Iterator last, MatchType match){ struct FindElement { void operator()(Iterator begin, Itera... 阅读全文
posted @ 2015-11-04 14:20 wu_overflow 阅读(168) 评论(0) 推荐(0)
摘要:const std::string getCurrentSystemTime(){ auto tt = std::chrono::system_clock::to_time_t (std::chrono::system_clock::now()); struct tm* ptm = local... 阅读全文
posted @ 2015-11-03 17:37 wu_overflow 阅读(231) 评论(0) 推荐(0)
摘要:class ThreadsJoiner{ std::vector& threads;public: ThreadsJoiner(std::vector& threads_): threads(threads_) {} ~ThreadsJoiner() ... 阅读全文
posted @ 2015-11-03 17:24 wu_overflow 阅读(388) 评论(0) 推荐(0)