当前位置:网站首页>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.
边栏推荐
- Configuring multiple instances of MySQL under Linux
- Localization SoC development plan
- kubernetes集群命令行工具kubectl
- Redis persistence problem and final solution
- flex布局
- Online WPS tool
- MySQL implements transaction persistence using redo logs
- 挖财注册开户靠谱吗?安全吗?
- Is it reliable for the top ten securities companies to register and open accounts? Is it safe?
- ROS notes (09) - query and setting of parameters
猜你喜欢

redis02——一篇终结redis的五种数据类型操作命令(可学习、复习、面试、收藏备用)

B_QuRT_User_Guide(28)

asp. Net datalist when there are multiple data displays

Prometheus service discovery

Configuring multiple instances of MySQL under Linux

你了解TCP协议吗(二)?

Eslint syntax monitoring off
![[JS] - [DFS, BFS application] - learning notes](/img/77/6f8d4ebe1d0b3ba036aea9358de793.png)
[JS] - [DFS, BFS application] - learning notes

asp. Net upload image path and image name

Jacobian matrix J commonly used in slam
随机推荐
Online WPS tool
B_QuRT_User_Guide(28)
asp. Net datalist to display product information and pictures
Flex layout
Redis uses sentinel master-slave switching. What should the program do?
es数据导出csv文件
Porting ucosiii to stm32f429
Airflow2.1.1 summary of the pits stepped on in actual combat!!
asp. Net to search products and realize paging function
【学习笔记】模拟
十大券商注册开户靠谱吗?安全吗?
PC端隐藏滚动条
城联优品向英德捐赠抗洪救灾爱心物资
Explanation and application of instr() function in Oracle
Software testing and quality final review
kubernetes集群命令行工具kubectl
Unity 获取当前物体正前方,一定角度、距离的坐标点
MySQL single table access method
B_QuRT_User_Guide(29)
22/02/15 study notes