linaro 发布的内核版本中,提供了一套wakelock接口与google的wakelock接口实现了无缝对接,该套接口共有6个;
struct wake_lock{
struct wakeup_source ws;
};
static inline void wake_lock_init(struct wake_lock *lock,int type,const char* name...
分类:
其他好文 时间:
2015-03-15 00:53:17
阅读次数:
402
http://acm.hdu.edu.cn/showproblem.php?pid=5186题意是分别对每一位做b进制加法,但是不要进位模拟,注意:1 去掉前置0 2 当结果为0时输出0,而不是全部去掉#include #include #include using namespace std;co...
分类:
其他好文 时间:
2015-03-15 00:46:01
阅读次数:
292
没有什么特别的,就是按照题意进行模拟,代码有点长。。。
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 222;
int n,t[10],q;
int Value[maxn];
/*
1 a = 1
2 print
3 lock
4 ...
分类:
其他好文 时间:
2015-03-14 20:05:30
阅读次数:
153
关于位操作符。如 co = new HashMap();2 co.put('A', 0);3 co.put('B', 1);4 co.put('C', 2);5 c0.put('D', 3);第二,那么10位字符串怎么对应成一个32位的整数呢?开始时百思不得其解,其实也很简单,用一个for循环即可。...
分类:
其他好文 时间:
2015-03-14 16:55:57
阅读次数:
153
需求:
1、开发环境:sencha touch
要求在web app中能够呈现复杂格式的工程报表,例如如下:
2、要求能够自由缩放先写报表(双击实现放大缩小)
3、填写完成的数据要进入sqlite
解决思路:
1、采用cordova插件"org.apache.cordova.inappbrowser",地址:http://plugins.co...
分类:
移动开发 时间:
2015-03-14 15:21:53
阅读次数:
283
在Oracle中有很多锁,通过v$lock_type视图可以查看Oracle中所有类型的锁,在本篇文章中我们熟悉一下TM和TX锁的类型SQL> select * from v$lock_type where type in ('TM','TX'); TYPE NAME ...
分类:
数据库 时间:
2015-03-14 12:26:56
阅读次数:
196
1. 临界区(Critical Section)我们知道,临界区是指某个代码区间,在该区间中需要访问某些共享的数据对象,又或者是总线,硬件寄存器等,通常这段代码区间的范围要控制在尽可能小的范围内。临界区内需要对这些数据对象和硬件对象的访问进行保护,保证在退出临界区前不会被临界区外的代码对这些对象进行...
分类:
其他好文 时间:
2015-03-14 10:59:25
阅读次数:
153
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast的解决方法:在命令行输入:yum clean allhttp://blog.andrewpike.co.uk/repodata-is-over-2-we...
分类:
系统相关 时间:
2015-03-13 22:02:40
阅读次数:
3683
参考文章:https://developers.google.com/android/nexus/images转载自: http://www.inexus.co/article-1280-1.html本文标黄色的获取ROOT权限的部分已经在安卓5.1下验证通过,解锁过程参考的是:https://d....
分类:
移动开发 时间:
2015-03-13 18:39:18
阅读次数:
278