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.
This note will explain the purpose of HIDL (.hal), how to implment, how to build and how to use those libraries?
HIDL | Android Open Source Project
In C++, smart pointers, unique_ptr and shared_ptr, are very common.
If you develop on Android, you may have seen strong pointer(sp), it is also a smart pointer.
Some notes about those pointers.
– strong pointer in Android, can be saw as shared_ptr.
– shared_ptr has a counter to record who is using this pointer in order to prevent dangerous pointer managements.
This note wouldn’t tell you what is socket. I focus on write the programming steps.
Roughly saying, socket is an interface between application layer and TCP/IP.
You can think it as a control tools for TCP/IP.
I have updated my Ubuntu kernel from 5.0.* -> 5.6.13
This note is a backup of How to compile and install Linux Kernel 5.6.9 from source code.
Environment: Ubuntu 18.04