Mistake on this page?
Report an issue in GitHub or email us
sleep_manager_api_racecondition_tests.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2018 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * @addtogroup hal_sleep_manager_tests
19  * @{
20  */
21 
22 #ifndef MBED_HAL_SLEEP_MANAGER_API_RACECONDITION_TESTS_H
23 #define MBED_HAL_SLEEP_MANAGER_API_RACECONDITION_TESTS_H
24 
25 /** Test lock/unlock is thread safe
26  *
27  * Given a device with sleep mode support
28  * When multiple threads are using the sleep manager API
29  * Then lock/unlock calls are thread safe
30  */
32 
33 /** Test lock/unlock is IRQ safe
34  *
35  * Given a device with sleep mode support
36  * When the sleep manager API is used from IRQ and the main thread concurrently
37  * Then lock/unlock calls are IRQ safe
38  */
40 
41 #endif
42 
43 /** @}*/
void sleep_manager_multithread_test()
Test lock/unlock is thread safe.
void sleep_manager_irq_test()
Test lock/unlock is IRQ safe.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.