摘要:
procon.cc#include <cstdlib>#include <iostream>#include <vector>#include <Poco/Thread.h>#include <Poco/Runnable.h>#include <Poco/Mutex.h>using Poco::Runnable;using Poco::Thread;using Poco::Mutex;using Poco::FastMutex;class SharedResourc { public: void produce() { _ 阅读全文
posted @ 2013-02-18 18:34
Leo Forest
阅读(550)
评论(0)
推荐(0)
摘要:
timer.cc#include <cstdlib>#include <iostream>#include <Poco/Timer.h>#include <Poco/Thread.h>using Poco::Timer;using Poco::TimerCallback;using Poco::Thread;class TimerExample{ public: void onTimer(Timer& timer) { std::cout << "onTimer called." << std: 阅读全文
posted @ 2013-02-18 10:37
Leo Forest
阅读(1977)
评论(0)
推荐(0)
浙公网安备 33010602011771号