大约有 2,400 项符合查询结果(耗时:0.0173秒) [XML]
OceanBase使用libeasy原理源码分析:客户端 - 数据库(内核) - 清泛网 - 专...
... send_queue_list;
// 当session的包返回时处理响应的回调函数,对于OceanBase 0.4的mergeserver来说,实际上是int ObMergeCallback::sql_process(easy_request_t* r)
// 将响应事件进mergeserver的finish queue队列
easy_io_process_pt *process;
ea...
windows异常处理 __try __except - C/C++ - 清泛网 - 专注C/C++及内核技术
...t关键字来定义。并且,catch关键字后面往往好像接受一个函数参数一样,可以是各种类型的异常数据对象;但是__except关键字则不同,它后面跟的却是一个表达式,我们知道,函数调用也是一个表达式。
我们来看下面这个例...
VC窗口刷新InvalidateRect和UpdateWindow - C/C++ - 清泛网 - 专注C/C++及内核技术
...序(自己写代码用SendMessage)来发送。
当调用UpdateWindow函数,或者是Window检测到窗口被覆盖的地方需要恢复的时候,比如,第一次创建窗口,改变了窗口的大小,最大化,最小化等等(其实这些事件发生时会调用UpdateWindow函数...
Run certain code every n seconds [duplicate]
...o through whatever code I had, then once it had been 5 seconds (with time.sleep() ) it would execute that code. I would be using this to update a file though, not print Hello World.
...
用Javascript获取页面元素的位置(全) - 更多技术 - 清泛网 - 专注C/C++及内核技术
...ntHeight
}
}
}
上面的getViewport函数就可以返回浏览器窗口的高和宽。使用的时候,有三个地方需要注意:
1)这个函数必须在页面加载完成后才能运行,否则document对象还没生成,浏览器会报错。
...
How to wait in bash for several subprocesses to finish and return exit code !=0 when any subprocess
...y.com/blog/archives/010717.html :
#!/bin/bash
FAIL=0
echo "starting"
./sleeper 2 0 &
./sleeper 2 1 &
./sleeper 3 0 &
./sleeper 2 0 &
for job in `jobs -p`
do
echo $job
wait $job || let "FAIL+=1"
done
echo $FAIL
if [ "$FAIL" == "0" ];
then
echo "YAY!"
else
echo "FAIL! ($FAIL...
windows下捕获dump之Google breakpad_client的理解 - C/C++ - 清泛网 - 专注C/C++及内核技术
...了非崩溃产生dump的接口。画个流程图出来(流程图只是函数的罗列,块与块之间可能存在包含关系):
CrashGenerationClient 和 CrashGenerationServer。
这两个类主要用于进程间通信,包括:管道数据传输、Event通知。跟ExceptionHa...
OS X Bash, 'watch' command
...basic functionality with the shell loop:
while :; do clear; your_command; sleep 2; done
That will loop forever, clear the screen, run your command, and wait two seconds - the basic watch your_command implementation.
You can take this a step further and create a watch.sh script that can accept yo...
MFC OnEraseBkgnd浅析 - C/C++ - 清泛网 - 专注C/C++及内核技术
...受。有没有什么这种的方法?有,那就是重载OnEraseBkgnd()函数。该函数控制重绘图的背景刷新,默认将窗口用系统背景颜色填充,即用白色将窗口刷一遍。这就产生的严重的闪烁效果,有时看到屏幕白的一条一闪而过,非常不爽...
代码坏味道(总结) - C/C++ - 清泛网 - 专注C/C++及内核技术
...相似的代码,需抽取共通,便于维护。2.Long Method(过长函数)函数体尽量简短,内聚性要变...
1.Duplicated Code(重复代码)
重复出现相同或相似的代码,需抽取共通,便于维护。
2.Long Method(过长函数)
函数体尽量...
