摘要:
To disallow functionality automatically provided by compilers: 1. declare the corresponding member functions private and give no implementations. clas 阅读全文
摘要:
PAR (Pixel Aspect Ratio),像素的宽高比 大多数情况像素宽高比为1:1,也就是一个正方形像素,如果不是1:1, 则可以理解为长方形像素。常用的PAR比率有(1:1,10:11, 40:33, 16:11, 12:11 )。 DAR (Display Aspect Ratio), 阅读全文
摘要:
GIC(Generic Interrupt Controller)是ARM公司提供的一个通用的中断控制器 基础知识可以参考以下文章: http://www.lujun.org.cn/?p=3834 RK的源码中对中断做了如下定义: /* u-boot\include\dt-bindings\inte 阅读全文
摘要:
For an enpty class, if you don't declare them yourself, compilers will declare their own versions of a copy constructor, a copy assignment operator, a 阅读全文
摘要:
In a constructor, prefer use of the member initialization list to assignment inside the body of the constructor. List data members in the initializati 阅读全文
摘要:
The following functions take the same parameter type: void f1(const Widget *pw); // f1 takes a pointer to a constant Widget object void f2(Widget cons 阅读全文
摘要:
When you do something like this: #define ASPECT_RATIO 1.653 Because #define may be treated as if it's not part of the language per se. The name you de 阅读全文
摘要:
1. 在x86平台上,一个空的系统调用大概会占用200个CPU周期,造成内核对象比用户模式下的同步机制慢几个数量级的原因,是伴随调度新线程而来的刷新告诉缓存以及错过高速缓存(即未命中),可能是成百上千个CPU周期。 2. 对线程同步来说,内核对象中的每一种要么处于触发状态,要么处于未触发状态。例如, 阅读全文
摘要:
1. 原子操作 1.1 InterLocked函数的工作原理取决于CPU平台,如果是x86系列CPU,那么InterLocked函数会在总线上维持一个硬件信号,这个信号会阻止其他CPU访问同一个地址。 1.2 我们必须保证传给InterLocked函数的变量地址是经过对齐的,否者这些函数可能会失败。 阅读全文
摘要:
参考以下博主文章,通俗易懂,排版满分: https://www.cnblogs.com/hykun/p/RSA.html 阅读全文