当前位置:网站首页>Experience in writing C
Experience in writing C
2022-06-25 10:02:00 【TowerOs】
Show yourself
Coding problem
- Before any data is used, it is best to 0 initialization
- Reduce the use of macros , Unless it's for The purpose of global source code architecture , For example, according to Kconfig Configure the increase / decrease module ; Try to use global variables and inline Function to complete
- Don't have object-oriented thinking , Don't let object orientation spoil your mind
- header The file is equivalent to controlling the external closeness of the source code , treat as public private Just use keywords
- Use struct Structure , Coordinate functions to simulate object-oriented , If you really need object orientation
- Be sure to know who owns this memory , such as : The end of the thread returns the memory in its own stack as a result , It is very …silly
Process related
- Use... Firmly pthread_mutex_timelock Prevent permanent blockage , They can't be used pthread_mutex_clock
- Pay attention to a lot pthread Different implementation completion degree in different operating systems , such as return End thread Of pthread_clean_pop The program will not execute , Because it won't call pthread_exit
Solve the inapplicability of object-oriented to structural language
- fuck it
边栏推荐
- Etcd tutorial - Chapter 4 etcd cluster security configuration
- MySQL source code reading (II) login connection debugging
- Jetpack compose layout (IV) - constraintlayout
- Get started quickly with jetpack compose Technology
- 字符串 实现 strStr()
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
- Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL
- 匯付國際為跨境電商賦能:做合規的跨境支付平臺!
- manhattan_slam环境配置
- How to delete a blank page that cannot be deleted in word
猜你喜欢
Japanese online notes for postgraduate entrance examination (9): composition template
[design completion - opening report] zufeinfo 2018 software engineering major (including FAQ)
字符串 实现 strStr()
Chitubox micromake l3+ slicing software configuration correspondence
Simple waterfall effect
Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL
Remittance international empowers cross-border e-commerce: to be a compliant cross-border payment platform!
2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?
With the QQ group file storage function of super nice, you immediately have n cloud disks that are easy to download and never expire
Title B of the certification cup of the pistar cluster in the Ibagu catalog
随机推荐
manhattan_slam环境配置
Cocopod error failed: undefined method `map 'for nil:nilclass
The problem of automatic page refresh after the flyer WebView pops up the soft keyboard
Oracle function trigger
Consul的基本使用与集群搭建
Learning notes of rxjs takeuntil operator
力扣-104. 二叉树的最大深度
汇付国际为跨境电商赋能:做合规的跨境支付平台!
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
An auxiliary MVP architecture project quick development library -mvpfastdagger
Is it safe to open an account in a mobile phone or a securities company?
PHP obtains the IP address, and the apache2 server runs without error
[zufe expense reimbursement] zhecai invoice reimbursement specification (taking Xinmiao reimbursement as an example), which can be passed in one trip at most
Japanese online notes for postgraduate entrance examination (9): composition template
Kotlin advanced set
Mengyou Technology: six elements of tiktok's home page decoration, how to break ten thousand dollars in three days
Neat Syntax Design of an ETL Language (Part 2)
MongoDB的原理、基本使用、集群和分片集群
manhattan_ Slam environment configuration
Data-driven anomaly detection and early warning of item C in the May 1st mathematical modeling competition in 2021