#include "common.h"#include "pool.h"#include static inline void *objmem_to_obj(void *objmem){return objmem + sizeof(pool_obj_head_t);}static inline vo...
分类:
其他好文 时间:
2014-06-27 21:24:59
阅读次数:
292
工程目录:Singleton.h//.h#define single_interface(class) + (class *)shared##class;//.m// \ 代表下一行也属于宏// ##是分隔符#define single_implementation(class) \static c...
分类:
数据库 时间:
2014-06-27 14:15:13
阅读次数:
255
转载请注明出处:http://www.openext.org/2014/06/lxc-erro1#tar zxvf lxc-xxx.tar#./autogen#./configure –prefix=/usr/local/lxc#make#make install#lxc-lsthe error:#echo “/usr/local/lxc/lib” >> /etc/ld.so.conf#ldcon...
分类:
其他好文 时间:
2014-06-27 08:36:38
阅读次数:
156
Singleton.h#define singleton_h(name) + (instancetype)shared##name;#if __has_feature (objc_arc)#define singleton_m(name) \static id _instance; \\+ (id)...
分类:
编程语言 时间:
2014-06-26 16:39:23
阅读次数:
193
//以下为rtsp的服务器A 1 #include 2 3 #include 4 #include 5 6 static gboolean 7 timeout (GstRTSPServer * server) 8 { 9 GstRTSPSessionPool *pool;10 11 ...
分类:
其他好文 时间:
2014-06-25 14:21:25
阅读次数:
648
How to create QTP Shared Object RepositoryTo create a shared object repository by performing following steps1) Creating a Shared Object Repository2) A...
分类:
其他好文 时间:
2014-06-25 13:07:34
阅读次数:
220
每一个iPhone程序都包含一个UIApplication对象,它管理整个程序的生命周期,从加载第一个显示界面开始,并且监听系统事件、程序事件调度整个程序的执行。
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int ret...
分类:
移动开发 时间:
2014-06-25 06:55:38
阅读次数:
268
如果遇到mysql-libs-5.1.73-3.el6_5.x86_64conflicts with file from package Percona-Server-server报错,有两种情况导致这个问题:
1)卸载操作系统预装的mysql-libs包
rpm -qa | grep -i libs | grep -i mysql
rpm -e mysql-libs
2)安装Percona-Server-shared-compat-5.5.33-rel31.1.566.rhel6.x86_64.rpm包(...
分类:
数据库 时间:
2014-06-24 18:23:49
阅读次数:
247
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215
$ sudo mount.cifs //windows-ip/shared /media/ -o user=username password=password
该命令挂载Windows下的shared共享目录到本地/media目录下.
Windows的用户名是username, 密码是password (作相应的修改)
这里的CIFS(Common Internet File Syste...