summaryrefslogtreecommitdiff
path: root/test/shared/regression/testcontrol_weak_defaults.c
blob: b93a28e5f122d3dea2f987a66f0629c789252348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/***************************************************************************
 * Copyright (C) 2026 Eclipse ThreadX contributors
 * 
 * This program and the accompanying materials are made available under the
 * terms of the MIT License which is available at
 * https://opensource.org/licenses/MIT.
 * 
 * AI Disclosure: This file was largely AI-generated by Codex (gpt 5.4).
 * The AI-generated portions may be considered public domain (CC0-1.0)
 * and not subject to the project's licence. The human contributor has
 * reviewed and verified that the code is correct.
 * 
 * SPDX-License-Identifier: MIT and CC0-1.0
 **************************************************************************/

#ifdef _MSC_VER
#if defined(_M_IX86)
#define TX_TEST_LINKER_ALIAS(symbol, default_symbol) __pragma(comment(linker, "/alternatename:_" #symbol "=_" #default_symbol))
#else
#define TX_TEST_LINKER_ALIAS(symbol, default_symbol) __pragma(comment(linker, "/alternatename:" #symbol "=" #default_symbol))
#endif

void  tx_test_default_abort_all_threads_suspended_on_mutex(void)
{
}
TX_TEST_LINKER_ALIAS(abort_all_threads_suspended_on_mutex, tx_test_default_abort_all_threads_suspended_on_mutex)

void  tx_test_default_suspend_lowest_priority(void)
{
}
TX_TEST_LINKER_ALIAS(suspend_lowest_priority, tx_test_default_suspend_lowest_priority)

void  tx_test_default_abort_and_resume_byte_allocating_thread(void)
{
}
TX_TEST_LINKER_ALIAS(abort_and_resume_byte_allocating_thread, tx_test_default_abort_and_resume_byte_allocating_thread)
#else
__attribute__((weak)) void  abort_all_threads_suspended_on_mutex(void)
{
}

__attribute__((weak)) void  suspend_lowest_priority(void)
{
}

__attribute__((weak)) void  abort_and_resume_byte_allocating_thread(void)
{
}
#endif