POSIX信号量相关函数:
sem_open
sem_close
sem_unlink
sem_init
sem_destroy
sem_wait
sem_post
POSIX互斥锁
pthread_mutex_init
pthreaad_mutex_lock
pthread_mutex_unlock
pthread_mutex_...
分类:
其他好文 时间:
2014-06-05 12:39:14
阅读次数:
412
60款开源云应用【Part 1】(60 Open Source Apps You Can Use in the Cloud)
本篇翻译自http://www.datamation.com/open-source/60-open-source-apps-you-can-use-in-the-cloud-1.html,原作者Cynthia
Harvey。
本人对云服务也是没有了解太多,希...
分类:
移动开发 时间:
2014-06-05 09:57:12
阅读次数:
609
初始化Open Program的四个函数:
GLuint shaderProgram = glCreateProgram();
glLinkProgram(shaderProgram);
glValidateProgram(shaderProgram);
glUseProgram(shaderProgram);
这样创建并使用了一个Open GL Program ,这里是用来装 GL sha...
分类:
其他好文 时间:
2014-06-05 06:00:07
阅读次数:
314
版本:2.6.33.4
发送端 tcp_write_xmit 函数
/* This routine writes packets to the network. It advances the
* send_head. This happens as incoming acks open up the remote
* window for us.
*
* LARGESEND no...
分类:
其他好文 时间:
2014-06-05 04:15:28
阅读次数:
236
区间的查询,点修改,插入和删除。先姑且当作模板吧,略挫,慢慢补充,慢慢优化。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000");
#define EPS (1e-8)
#d...
分类:
其他好文 时间:
2014-06-05 02:01:37
阅读次数:
400
微信分享代码相对来说比较简单,因为已经给我们提供了SDK Demo,代码部分就不再赘述了。
这边有一篇文章写的挺好,把遇到的问题都描述了一遍:
http://blog.csdn.net/freesonhp/article/details/10756663
另外微信官方已经提供了一些经常遇到问题的解决方案
https://open.weixin.qq.com/cgi-bin/...
分类:
微信 时间:
2014-06-05 01:20:14
阅读次数:
435
《代码阅读》读书笔记(一)
《代码阅读》(《Code Reading The Open Source Perspective》)Diomidis Spinellis 著
-----------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-06-05 00:36:45
阅读次数:
299
我们经常会遇到生产者消费者模式,比如前端各种UI操作事件触发后台逻辑等。在这种典型的应用场景中,我们可能会有4个业务处理逻辑(下文以P代表生产者,C代表消费者):
1. FIFO(先进先出)
P产生1,2,3,4,5,6,3,2
C处理顺序应为1,2,3,4,5,6,3,2
2.LIFO(后进先出)
P产生1,2,3,4,5,6,3,2
C处...
分类:
其他好文 时间:
2014-06-04 21:51:08
阅读次数:
421
Ubuntu下比较方便好用的initiator是open
iscsi,这里将要简要介绍它的使用方法:1.安装:sudo apt-get install
open-iscsi2.chap设置如果ip-san上设置了chap(没有设置chap的话,可以略去这一步),则要修改/etc/iscsi/iscs...
分类:
其他好文 时间:
2014-05-31 20:48:28
阅读次数:
527