当前位置:网站首页>B_ QuRT_ User_ Guide(28)
B_ QuRT_ User_ Guide(28)
2022-06-28 08:07:00 【weixin_ thirty-eight million four hundred and ninety-eight thou】
B_QuRT_User_Guide(28)
17.11 qurt_interrupt_get_status()
17.11.1 Function document
17.11.1.1 unsigned int qurt_interrupt_get_status ( int int_num, int status_type, int ∗ status )
obtain L2VIC State of the interrupt specified in .
Parameters 
Return value
QURT_EOK - success .
QURT_EINT - Failure ; Invalid interrupt number .
Dependencies
None.
17.12 Constants
This section describes constants for interrupting services .
17.12.1 Function document
17.12.1.1 #define SIG_INT_ABORT 0x80000000
18 Thread Local Storage
Threads use thread local storage to allocate global storage , Global storage is private to a particular thread .
Data items stored in the thread local store can be accessed by any function in the thread ( But it cannot be accessed by any function outside the thread ). Same as global storage , As long as the thread exists , Stored data items will always exist . You can define destruction functions , Process stored data items when the thread terminates .
Be careful : Deleting a key does not run any destructors associated with it .
Memory for thread local storage is automatically allocated by the kernel .QuRT Thread local
Storage services are related to POSIX Compatible .
QuRT The thread local storage key in is defined by int Type to identify . Thread local storage supports the following operations .
- qurt_tls_create_key() - qurt_tls_delete_key() - qurt_tls_get_specific() - qurt_tls_set_specific()
18.1 qurt_tls_create_key()
18.1.1 Function document
18.1.1.1 int qurt_tls_create_key ( int ∗ key, void(∗)(void ∗) destructor )
Create a key to access data items stored locally by the thread .
Subsequent get and set operations use this key value .
Be careful : When a thread's local storage item is deleted , The destructor will perform any cleanup required by the thread ( The first 3.12.1.1 section ).
Parameters 
Return value
QURT_EOK - Key created successfully .QURT_ETLSAVAIL - There is nothing available TLS secret key .
Dependencies
None.
18.2 qurt_tls_delete_key()
18.2.1 Function document
18.2.1.1 int qurt_tls_delete_key ( int key )
Deletes the specified key from the thread local store .
Be careful : Explicitly deleting a key does not execute any destructors associated with that key ( The first 18.1.1.1 section ).
Parameters 
Return value
QURT_EOK - Key deleted successfully .QURT_ETLSENTRY - The key has been released .
Dependencies
None.
18.3 qurt_tls_get_specific()
18.3.1 Function document
18.3.1.1 void∗ qurt_tls_get_specific ( int key )
Load data items from thread local storage .
Returns the data item stored in the thread local storage with the specified key . The data item is always a pointer to user data .
Parameters 
Return value
The pointer - Key indexed data items in thread local storage .0 (NULL) - Key out of range .
Dependencies
None.
18.4 qurt_tls_set_specific()
18.4.1 Function document
18.4.1.1 int qurt_tls_set_specific ( int key, const void ∗ value )
Store a data item together with the specified key in the thread local storage .
Parameters 
Return value
QURT_EOK - Data item successfully stored .QURT_EINVALID - Invalid key .
QURT_EFAILED - Call from a non threaded context .
Dependencies
None.
边栏推荐
- HJ explicit random number
- Redis cerebral fissure
- HJ质数因子
- flex布局
- 设置网页的标题部分的图标
- Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)
- Airflow2.1.1 summary of the pits stepped on in actual combat!!
- 图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
- Redis persistence problem and final solution
- 你了解TCP协议吗(一)?
猜你喜欢

Ambari (VIII) --- ambari integrated impala document (valid for personal test)

sql主从复制搭建

Configuring MySQL multi instance master-slave synchronization for Linux

设置cmd的编码为utf-8

sql分析(查询截取分析做sql优化)

云原生:云计算技术再次升级 开启全面云开发时代

【学习笔记】最短路 +生成树

asp. Net to search products and realize paging function

城联优品向英德捐赠抗洪救灾爱心物资

你了解TCP协议吗(一)?
随机推荐
flex布局
Unity 获取当前物体正前方,一定角度、距离的坐标点
Localization SoC development plan
LeetCode之三步问题
Activity隐式跳转
SQL analysis (query interception analysis for SQL optimization)
Design of DSP image data stream
flex布局
22/02/15 study notes
How to configure DDR3 of dm8148
es数据导出csv文件
【学习笔记】搜索
App automated testing appium tutorial 2 - ADB command
Three step problem of leetcode
设置cmd的编码为utf-8
Introduction to kubernetes (I)
Idea package together, using compact middle packages to solve &
HJ成绩排序
Disposition Flex
Jenkins' common build trigger and hook services (V)