当前位置:网站首页>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.
边栏推荐
- Jacobian matrix J commonly used in slam
- Jenkins' common build trigger and hook services (V)
- Activity implicit jump
- Is it reliable to open an account by digging money? Is it safe?
- sql主从复制搭建
- 设置网页的标题部分的图标
- B_QuRT_User_Guide(29)
- Activity隐式跳转
- Is it reliable for securities companies to register and open accounts? Is it safe?
- HJ string sort
猜你喜欢
随机推荐
Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)
Do you know TCP protocol (2)?
三角变换公式
Hj21 simple password
Activity implicit jump
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
Image translation /transformer:ittr: unpaired image to image translation with transformers
Online WPS tool
图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
PC端隐藏滚动条
ROS notes (08) - definition and use of service data
Porting ucosiii to stm32f429
图像翻译:UVCGAN: UNET VISION TRANSFORMER CYCLE-CONSISTENT GAN FOR UNPAIRED IMAGE-TO-IMAGE TRANSLATION
asp. Net datalist when there are multiple data displays
Conversion between HJ integer and IP address
Introduction to kubernetes (I)
设置网页的标题部分的图标
SLAM中常用的雅克比矩阵J
挖财注册开户靠谱吗?安全吗?
2022巴黎时装周儿童单元6.19武汉站圆满落幕









