02 2014 档案
摘要:os:redhat enterprice 6.0 x64gcc:4.8.2(需要编译安装)1.编译wxwidgets2.8可能先要安装opengl的development头文件和库:yum install mesa-libGLyum install mesa-libGL-develyum install mesa-libGLUyum install mesa-libGLU-develrelease版:(1)mkdir build_release(2)cd build_release(3)../configure --with-gtk --with-opengl --disable-shared
阅读全文
摘要:在c++的chrono中没有找到相应的实现,只好从boost里面找了,代码如下:#include// Get current time from the clock, using microseconds resolutionconst boost::posix_time::ptime now = boost::posix_time::microsec_clock::local_time();// Get the time offset in current dayconst boost::posix_time::time_duration td = now.time_of_day();fra
阅读全文
摘要:在使用vs2013编译boost-1.55.0之前,先要给boost打个补丁,补丁如下(可直接该源文件): 1 Index: has_member_function_callable_with.hpp 2 3 ============================================...
阅读全文
摘要:这是一个简单的scheduler,用于在同一个线程上下文(thread context)中执行不同的任务,以避免某些情况下的复杂的竞争。 1 #pragma once 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 using namespace std;10 11 enum{12 CALLBACK_FUCN = 0,13 SHUTDOWN = 114 };15 16 struct callback_t;17 typedef int (*callback_func)(str...
阅读全文
摘要:Boost.Interprocess只需要引入头文件就可以使用,常用的包括:1.普通共享内存#include #include 2.消息队列#include 参考:http://www.ibm.com/developerworks/cn/aix/library/au-concurrent_boost/
阅读全文

浙公网安备 33010602011771号