If you want to porting any library from the distribution to another one,
you should learn GNU autotool firstly.
From porting libqmi, we can learn this fact.
Step 1: install the following libraries.
Step 2: enter the libraries’ folder
which included configure.ac, Makefile.am
./configure //in fact, doing autoconf
Explanation of files:
configure.ac: input file for Autoconf.
Makefile.am: input file(s) for Automake.
Factory pattern is a basic pattern in grant software framework.
We create object, parent, with common interface to create new type of object.
The common interface is a static member-function (static factory method) which creates & returns instances, hiding the details of children.
The following will show a snappiest code of Android Q.
This article will introduce an well-known tool for detecting the memory leak,
Some people like to use empty infinite loop to implement the “waiting“.
It is a BAD design because this design will block your CPU !!!
I make a practice to explain this situation.