命令 :ls 可查看当前已打开的buffer命令 :b num 可切换buffer (num为buffer list中的编号)其它命令::bn -- buffer列表中下一个 buffer:bp -- buffer列表中前一个 buffer:b# -- 你之前所在的前一个 buffer
分类:
系统相关 时间:
2014-11-03 13:00:22
阅读次数:
445
生产者-消费者问题(Producer-consumer problem),也称作有限缓冲问题(Bounded-buffer problem),是多线程领域的一个经典问题,可以描述为:两个或者更多个线程共享同一个缓冲区,其中一个或多个作为“生产者”会不断地向缓冲区中添加数据,另外的一个或者多个作为.....
分类:
编程语言 时间:
2014-11-03 12:44:30
阅读次数:
147
Main.cpp
#include
#include /* for exit */
using namespace std;
static void display()
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex2f(-0.5, -0.5);
glVertex2f(-0.5, 0.5);
...
分类:
系统相关 时间:
2014-11-02 13:52:48
阅读次数:
348
斗智斗勇系列,这个时间限制太变态了,10^5的数据读进去100ms就完蛋,buffer又不能太多开,但是8M buffer开出来其实也没啥用,还是超时 除去超时数据点,还有一个数据点没有过,不知道是什么边界条件,不管了 判断两条链表是否相交,首先两条链表都走到最后一个节点,如果节点相同,则说...
分类:
其他好文 时间:
2014-11-02 10:48:40
阅读次数:
194
1 // Get the error code 2 DWORD dwError = GetDlgItemInt(IDC_EDIT1); 3 4 HLOCAL hlocal = NULL; // Buffer that gets the error message st...
分类:
其他好文 时间:
2014-11-01 21:37:57
阅读次数:
133
主体:目前最流行的J2SDK版本是1.3系列。使用该版本的开发人员需文件随机存取,就得使用RandomAccessFile类。其I/O性能较之其它常用开发语言的同类性能差距甚远,严重影响程序的运行效率。开发人员迫切需要提高效率,下面分析RandomAccessFile等文件类的源代码,找出其中的症结...
分类:
数据库 时间:
2014-10-31 18:56:01
阅读次数:
261
building?‘_imagingft‘?extension?gcc?-pthread?-fno-strict-aliasing?-march=x86-64?-mtune=generic?-O2?-pipe?-fstack-protector?--param=ssp-buffer-size=4?-DNDEBUG?-march=x86-64?-mtune=gene...
分类:
其他好文 时间:
2014-10-31 16:11:08
阅读次数:
128
升级xcode到6.1后,跑以前的cocos2dx 2.x写的项目,发现clippingNode失效了。后来看到这个帖子,解决了我的问题:http://discuss.cocos2d-x.org/t/ccclippingnode-will-raise-error-stencil-buffer-is-...
分类:
移动开发 时间:
2014-10-31 13:47:35
阅读次数:
295
public void saveBit(InputStream inStream) throws IOException{ ByteArrayOutputStream outStream = new ByteArrayOutputStream(); //创建一个Buffer字符串...
分类:
其他好文 时间:
2014-10-31 13:47:18
阅读次数:
193
2中方法:
1.public byte[] downloadResource(Context context, String url)
throws ClientProtocolException, IOException {
isStop = false;
ByteArrayBuffer buffer = null;
HttpGet hp = new HttpGet(url)...
分类:
移动开发 时间:
2014-10-30 19:18:49
阅读次数:
173