当前位置:网站首页>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.
边栏推荐
- How redis solves cache avalanche, breakdown and penetration problems
- Trigonometric transformation formula
- Unity 获取当前物体正前方,一定角度、距离的坐标点
- Devops foundation chapter Jenkins deployment (II)
- asp. Net to search products and realize paging function
- Idea package together, using compact middle packages to solve &
- 【尚品汇】项目笔记
- Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)
- kubernetes集群命令行工具kubectl
- Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
猜你喜欢

设置网页的标题部分的图标

B_QuRT_User_Guide(26)

Soft test -- software designer -- database design of afternoon questions

Kubernetes理论基础

ROS notes (09) - query and setting of parameters

MySQL tablespace parsing

MySQL row format parsing

asp. Net datalist to display product information and pictures

Redis persistence problem and final solution

图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
随机推荐
Redis persistence problem and final solution
Three step problem of leetcode
Activity隐式跳转
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
asp. Net upload image path and image name
Do you know TCP protocol (1)?
22/02/15 study notes
Hj21 simple password
kubernetes集群命令行工具kubectl
SQL master-slave replication setup
Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
Section Xi. Axi of zynq_ Use of DMA
设置cmd的编码为utf-8
Co process, asyncio, asynchronous programming
Es data export CSV file
Section 9: dual core startup of zynq
Software design of resistance test board
Airflow2.1.1 summary of the pits stepped on in actual combat!!
设置网页的标题部分的图标
MySQL implements transaction persistence using redo logs