http://www.cnblogs.com/yeagen/archive/2012/03/01/2375610.html1.Application.Lock和Application.UnLock一般配对出现,用于锁住Lock与UnLock之间的所有代码(注意不光锁住对于Application的赋值...
分类:
移动开发 时间:
2014-08-28 00:42:08
阅读次数:
250
if语句if ( test condition ) statement1;else statement2;// comments/* comments ... */script level:直接在里面声明的变量相当与全局变量,可以直接在每个函数里面访问。在函数里面生命的变量只能在该函数...
分类:
编程语言 时间:
2014-08-27 20:08:18
阅读次数:
170
cordova的android notify消息通知插件
分类:
移动开发 时间:
2014-08-27 18:00:38
阅读次数:
246
简单BFS? 感觉不是很好写,不过我觉得我这种写法还是比较飘逸的。#include #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:
其他好文 时间:
2014-08-27 14:27:37
阅读次数:
197
关于MemStore的补充在通过HStore.add向store中加入?一个kv时,首先把数据写入到memstore中。这一点没有什么说明;publiclongadd(finalKeyValue kv) {lock.readLock().lock();try{returnthis.memstore....
分类:
其他好文 时间:
2014-08-27 12:50:57
阅读次数:
235
上一节中讲的SIP组件,即GBT28181SipComponent动态.so库工程,生成libGBT28181SipComponent.so库文件和IGBT28181Comm.h编程接口,在该库中实现了REGISTER,MESSAGE,NOTIFY,SUBSCRIBE,INVITE,ACK,BYE,...
分类:
其他好文 时间:
2014-08-26 17:11:06
阅读次数:
347
public static void SearchResult(DataGrid dg,string condition) { #region string code = string.Empty; Da...
分类:
其他好文 时间:
2014-08-26 16:51:26
阅读次数:
377
一、线程的两种实现方式:继承Thread类和实现Runnable接口二、同步的两种实现方式:synchronized,wait和notify三、为何不推荐使用stop()和suspend()?四、sleep和wait区别五、同步和异步的区别六、当一个线程进入一个对象的一个synchronized方法...
分类:
编程语言 时间:
2014-08-26 13:37:46
阅读次数:
248
最近在学习用CORDOVA(PHONEGAP)结合SENCHA TOUCH开发应用,想实现一个安卓下的消息通知功能,这个可以通过CORDOVA的插件来实现。插件目录结构如下:notifypluginplugin.xmlwww/notifysrv.jssrc/android/NotifysrvPlug...
分类:
移动开发 时间:
2014-08-26 13:31:06
阅读次数:
318
skynet 利用内置的原子操作来实现的一个读写锁,重点是理解 ”full memory barrier“ ,UNPv2 中利用互斥和条件变量实现的读写锁。前者是在硬件支持的情况下,显得简单明了,站的层次不一样。
源码贴出来:
struct rwlock {
int write;
int read;
};
static inline void
rwlock_in...
分类:
Web程序 时间:
2014-08-26 11:43:26
阅读次数:
284