当前位置:网站首页>B_ QuRT_ User_ Guide(40)
B_ QuRT_ User_ Guide(40)
2022-07-07 23:26:00 【weixin_ thirty-eight million four hundred and ninety-eight thou】
B_QuRT_User_Guide(40)
- 27.19 qurt_atomic_dec_return()
- 27.20 qurt_atomic_compare_and_set()
- 27.21 qurt_atomic_barrier()
- 27.22 qurt_atomic64_set()
- 27.23 qurt_atomic64_and_return()
- 27.24 qurt_atomic64_or()
- 27.25 qurt_atomic64_or_return()
- 27.26 qurt_atomic64_xor_return()
- 27.27 qurt_atomic64_set_bit()
- 27.28 qurt_atomic64_clear_bit()
- 27.29 qurt_atomic64_change_bit()
- 27.30 qurt_atomic64_add()
- 27.31 qurt_atomic64_add_return()
- 27.32 qurt_atomic64_sub_return()
- 27.33 qurt_atomic64_inc()
- 27.34 qurt_atomic64_inc_return()
- 27.35 qurt_atomic64_dec_return()
- 27.36 qurt_atomic64_compare_and_set()
27.19 qurt_atomic_dec_return()
27.19.1 Function document
27.19.1.1 static QURT_INLINE unsigned int qurt_atomic_dec_return ( unsigned int ∗target )
Subtract the atomic variable by one .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
Return value
Impairment .
Dependencies
None.
27.20 qurt_atomic_compare_and_set()
27.20.1 Function document
27.20.1.1 static QURT_INLINE unsigned int qurt_atomic_compare_and_set (unsigned int ∗ target, unsigned int old_val, unsigned int new_val )
Compare the current value of the atomic variable with the specified value , And set it to the new value when the comparison is successful .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | old_val | Old value to compare . |
| in | new_val | New value to set . |
Return value
FALSE – The specified value is not equal to the current value .
TRUE – The specified value is equal to the current value .
Dependencies
None.
27.21 qurt_atomic_barrier()
27.21.1 Function document
27.21.1.1 static QURT_INLINE void qurt_atomic_barrier ( void )
Allows the compiler to enforce sort constraints on memory operations issued before and after functions .
Return value
None.
Dependencies
None.
27.22 qurt_atomic64_set()
27.22.1 Function document
27.22.1.1 static QURT_INLINE unsigned long long qurt_atomic64_set ( unsigned long long ∗ target, unsigned long long value )
Use the specified value to set 64 Bit atomic variable .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | value | To set up 64 A value . |
Return value
Successfully set the value .
Dependencies
None.
27.23 qurt_atomic64_and_return()
27.23.1 Function document
27.23.1.1 static QURT_INLINE unsigned long long qurt_atomic64_and_return (unsigned long long ∗ target, unsigned long long mask )
Masked 64 Bitwise and operation of bitwise atomic variables .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | mask | Bitwise AND 64 Bitmask . |
Return value
Masked 64 Bit atomic variable AND result .
Dependencies
None.
27.24 qurt_atomic64_or()
27.24.1 Function document
27.24.1.1 static QURT_INLINE void qurt_atomic64_or ( unsigned long long ∗ target,unsigned long long mask )
Masked 64 Bitwise OR operation of bitwise atomic variables .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | mask | Bitwise OR 64 Bitmask . |
Return value
None.
Dependencies
None.
27.25 qurt_atomic64_or_return()
27.25.1 Function document
27.25.1.1 static QURT_INLINE unsigned long long qurt_atomic64_or_return (unsigned long long ∗ target, unsigned long long mask )
Masked 64 Bitwise OR operation of bitwise atomic variables .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | mask | Bitwise OR 64 Bitmask . |
Return value
With masked atomic variables OR result .
Dependencies
None.
27.26 qurt_atomic64_xor_return()
27.26.1 Function document
27.26.1.1 static QURT_INLINE unsigned long long qurt_atomic64_xor_return (unsigned long long ∗ target, unsigned long long mask )
Masked 64 Bitwise XOR operation of bitwise atomic variables .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | mask | Used for bitwise XOR 64 Bitmask . |
Return value
With masked atomic variables XOR result .
Dependencies
None.
27.27 qurt_atomic64_set_bit()
27.27.1 Function document
27.27.1.1 static QURT_INLINE void qurt_atomic64_set_bit ( unsigned long long ∗target, unsigned int bit )
stay 64 Set a bit at the specified position in the bit atomic variable .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | bit | To set up bit Location . |
Return value
None.
Dependencies
None.
27.28 qurt_atomic64_clear_bit()
27.28.1 Function document
27.28.1.1 static QURT_INLINE void qurt_atomic64_clear_bit ( unsigned long long ∗target, unsigned int bit )
eliminate 64 Bit of the specified position in the atomic variable .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | bit | To be cleared bit Location . |
Return value
None.
Dependencies
None.
27.29 qurt_atomic64_change_bit()
27.29.1 Function document
27.29.1.1 static QURT_INLINE void qurt_atomic64_change_bit ( unsigned long long ∗target, unsigned int bit )
stay bit Positional 64 Switch bits in bit atomic variables .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | bit | To switch bit Location . |
Return value
None.
Dependencies
None.
27.30 qurt_atomic64_add()
27.30.1 Function document
27.30.1.1 static QURT_INLINE void qurt_atomic64_add ( unsigned long long ∗ target,unsigned long long v )
take 64 Bit integers are added to 64 Bit atomic variable .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | v | What to add 64 Bit integer value . |
Return value
None.
Dependencies
None.
27.31 qurt_atomic64_add_return()
27.31.1 Function document
27.31.1.1 static QURT_INLINE unsigned long long qurt_atomic64_add_return (unsigned long long ∗ target, unsigned long long v )
take 64 Bit integers are added to 64 Bit atomic variable .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | v | What to add 64 Bit integer value . |
Return value
The result of arithmetic sum .
Dependencies
None.
27.32 qurt_atomic64_sub_return()
27.32.1 Function document
27.32.1.1 static QURT_INLINE unsigned long long qurt_atomic64_sub_return (unsigned long long ∗ target, unsigned long long v )
Subtract one from the atomic variable 64 An integer .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | v | What to subtract 64 Bit integer value . |
Return value
The result of arithmetic subtraction .
Dependencies
None.
27.33 qurt_atomic64_inc()
27.33.1 Function document
27.33.1.1 static QURT_INLINE void qurt_atomic64_inc ( unsigned long long ∗ target )
take 64 Bit atomic variable plus one .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
Return value
None.
Dependencies
None.
27.34 qurt_atomic64_inc_return()
27.34.1 Function document
27.34.1.1 static QURT_INLINE unsigned long long qurt_atomic64_inc_return (unsigned long long ∗ target )
take 64 Bit atomic variable plus one
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
Return value
Incremental value .
Dependencies
None.
27.35 qurt_atomic64_dec_return()
27.35.1 Function document
27.35.1.1 static QURT_INLINE unsigned long long qurt_atomic64_dec_return (unsigned long long ∗ target )
take 64 One atomic variable minus one .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
Return value
Impairment .
Dependencies
None.
27.36 qurt_atomic64_compare_and_set()
27.36.1 Function document
27.36.1.1 static QURT_INLINE int qurt_atomic64_compare_and_set ( unsigned long long ∗ target, unsigned long long old_val, unsigned long long new_val )
take 64 The current value of the bit atomic variable is compared with the specified value , And set it to the new value when the comparison is successful .
Be careful : This function will retry , Until the loading lock and condition storage succeed .
Parameters
| in,out | target | Pointer to atomic variable . |
| in | old_val | To compare 64 Bit old value . |
| in | new_val | To set up 64 Bit new value . |
Return value
FALSE – The specified value is not equal to the current value .
TRUE – The specified value is equal to the current value .
Dependencies
None.
边栏推荐
- Explain
- Talk about the design and implementation logic of payment process
- 包装行业智能供应链S2B2B商城解决方案:开辟电商消费新生态
- 城联优品作为新力量初注入,相关上市公司股价应声上涨150%
- 系统设计概述
- Puce à tension stabilisée LDO - schéma de bloc interne et paramètres de sélection du modèle
- 系统架构设计师备考经验分享:论文出题方向
- Network security - Eternal Blue
- 云原生数据仓库AnalyticDB MySQL版用户手册
- 2021icpc Shanghai h.life is a game Kruskal reconstruction tree
猜你喜欢

海内外技术人们“看”音视频技术的未来

UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)

Description of longitude and latitude PLT file format
![Ros2 topic (03): the difference between ros1 and ros2 [01]](/img/20/39d47c93400050a7bc8ad7efea51b3.png)
Ros2 topic (03): the difference between ros1 and ros2 [01]

USB(十五)2022-04-14

生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行

Explain

Inftnews | web5 vs Web3: the future is a process, not a destination

Install a new version of idea. Double click it to open it

Mysql索引优化实战一
随机推荐
LeeCode -- 6. Z 字形变换
Inftnews | the wide application of NFT technology and its existing problems
Wechat forum exchange applet system graduation design (5) assignment
When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK
LeeCode -- 6. Zigzag transformation
USB (XVI) 2022-04-28
Network security sqlmap and DVWA explosion
Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
Deep understanding of MySQL lock and transaction isolation level
Mysql索引优化实战二
Tree background data storage (using webmethod) [easy to understand]
The 19th Zhejiang Provincial College Programming Contest 2022 f.easyfix chairman tree
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
MySQL Index Optimization Practice II
Ros2 topic (03): the difference between ros1 and ros2 [02]
Wechat forum exchange applet system graduation design completion (4) opening report
海内外技术人们“看”音视频技术的未来
Description of longitude and latitude PLT file format
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
在软件工程领域,搞科研的这十年!