GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: core/src/ux_utility_thread_relinquish.c Lines: 3 3 100.0 %
Date: 2024-12-12 17:16:36 Branches: 0 0 - %

Line Branch Exec Source
1
/***************************************************************************
2
 * Copyright (c) 2024 Microsoft Corporation
3
 *
4
 * This program and the accompanying materials are made available under the
5
 * terms of the MIT License which is available at
6
 * https://opensource.org/licenses/MIT.
7
 *
8
 * SPDX-License-Identifier: MIT
9
 **************************************************************************/
10
11
12
/**************************************************************************/
13
/**************************************************************************/
14
/**                                                                       */
15
/** USBX Component                                                        */
16
/**                                                                       */
17
/**   Utility                                                             */
18
/**                                                                       */
19
/**************************************************************************/
20
/**************************************************************************/
21
22
23
/* Include necessary system files.  */
24
25
#define UX_SOURCE_CODE
26
27
#include "ux_api.h"
28
29
30
#if !defined(UX_STANDALONE)
31
/**************************************************************************/
32
/*                                                                        */
33
/*  FUNCTION                                               RELEASE        */
34
/*                                                                        */
35
/*    _ux_utility_thread_relinquish                       PORTABLE C      */
36
/*                                                           6.1.11       */
37
/*  AUTHOR                                                                */
38
/*                                                                        */
39
/*    Chaoqiong Xiao, Microsoft Corporation                               */
40
/*                                                                        */
41
/*  DESCRIPTION                                                           */
42
/*                                                                        */
43
/*    This function helps the thread relinquish its control.              */
44
/*                                                                        */
45
/*  INPUT                                                                 */
46
/*                                                                        */
47
/*                                                                        */
48
/*  OUTPUT                                                                */
49
/*                                                                        */
50
/*                                                                        */
51
/*  CALLS                                                                 */
52
/*                                                                        */
53
/*    tx_thread_relinquish                  ThreadX relinquish thread     */
54
/*                                                                        */
55
/*  CALLED BY                                                             */
56
/*                                                                        */
57
/*    USBX Components                                                     */
58
/*                                                                        */
59
/*  RELEASE HISTORY                                                       */
60
/*                                                                        */
61
/*    DATE              NAME                      DESCRIPTION             */
62
/*                                                                        */
63
/*  05-19-2020     Chaoqiong Xiao           Initial Version 6.0           */
64
/*  09-30-2020     Chaoqiong Xiao           Modified comment(s),          */
65
/*                                            resulting in version 6.1    */
66
/*  04-25-2022     Chaoqiong Xiao           Modified comment(s),          */
67
/*                                            off in standalone build,    */
68
/*                                            resulting in version 6.1.11 */
69
/*                                                                        */
70
/**************************************************************************/
71
213244
VOID  _ux_utility_thread_relinquish(VOID)
72
{
73
74
    /* Call ThreadX to relinquish a USBX thread.  */
75
213244
    tx_thread_relinquish();
76
77
213241
}
78
#endif