学习云风的skynet源代码,简单记录下。void skynet_globalmq_push(struct message_queue * queue) { struct global_queue *q= Q; uint32_t tail = GP(__sync_fetch_and_add(&q->...
分类:
Web程序 时间:
2014-09-06 17:24:23
阅读次数:
228
package sync;
public class Test {
public static void main(String[] args) {
Test test = new Test();
//Factory factory = Factory.getInstance();
Producer producer = test.new Producer();
produc...
分类:
编程语言 时间:
2014-09-06 12:30:43
阅读次数:
214
1.tp driver的tpd_down()和tpd_up()函数中不需要上报id号,上层会自动进行匹配;
2.tpd_up()函数中只需要上报BTN_TOUCH和mt_sync信息,其他信息不用上报,如下:
static void tpd_up(int x, int y,int *count)
{
input_report_key(tpd->dev, BTN_TOUCH, ...
分类:
移动开发 时间:
2014-09-04 09:47:07
阅读次数:
283
Linux的计划任务分为两类:1,一次性执行:常用命令:at,batch,依赖于atd服务2,周期性执行:常用命令:crontab,依赖于crond服务一次性任务执行:用法:#atTIME
at>/bin/sync输入需要执行的命令或脚本
at>“Ctrl+d”输入Cry+d提交任务TIME:的几种格式#atnow+3min相对..
分类:
系统相关 时间:
2014-09-04 03:05:48
阅读次数:
282
Go to File > Settings > Gradle you will end up with this screen for setting up your gradle :Also make sure you have Google Repository in your Android ...
分类:
其他好文 时间:
2014-09-03 16:22:26
阅读次数:
238
在sts中,启动run on server时或查看项目文件时报错:Resource is out of sync with the file system: ....这是文件系统不同步的问题,是因为在eclipse或mycelipse之外对工程中的resource进行修改引起的(或者是由不同的系统间...
分类:
其他好文 时间:
2014-09-03 00:05:35
阅读次数:
282
右键--》SFTP/FTP -》Sync Remote To Local {作者:半条虫(466814195)}
提示以下错误
An unexpected error occurred, please send the file ~/.config/sublime-text-2/Packages/User/SFTP.errors.log to support@wbond.net
...
分类:
其他好文 时间:
2014-09-02 12:26:14
阅读次数:
265
来自白大师(白鳝)对log file sync等待事件优化的总结,供各位puber们学习参考: 一、 log file sync平均等待事件时间超过7ms,如果等待时间过长,说明log write每次写入的时间过长,如果能够优化redo日志文件...
分类:
数据库 时间:
2014-08-27 20:38:58
阅读次数:
390
想将mysql 的TCP 封死,所有外部链接由我的proxy来控制,so 写了一个 tcp 转 unix socket 的 proxy。
package main
import (
"os"
"fmt"
"net"
"io"
"sync"
"time"
)
type proxy struct{
Host string
Port string
Local string...
分类:
其他好文 时间:
2014-08-27 00:27:36
阅读次数:
270
对于许多初学者来说,网络通信程序的开发,普遍的一个现象就是觉得难以入手。许多概念,诸如:同步(Sync)/异步(Async),阻塞(Block)/非阻塞(Unblock)等,初学者往往迷惑不清,只知其所以而不知起所以然。 同步方式指的是发送方不等接收方响应,便接着发下个数据包的通信方式;而异步指发....